Author: mbrohl
Date: Mon Dec 18 09:41:33 2017 New Revision: 1818543 URL: http://svn.apache.org/viewvc?rev=1818543&view=rev Log: Improved: General refactoring and code improvements, package org.apache.ofbiz.base.lang. (OFBIZ-9931) Thanks Dennis Balkir for reporting and providing the patches. Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/JSON.java ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/Range.java Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/JSON.java URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/JSON.java?rev=1818543&r1=1818542&r2=1818543&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/JSON.java (original) +++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/JSON.java Mon Dec 18 09:41:33 2017 @@ -37,7 +37,7 @@ public final class JSON { /** * Creates a <code>JSON</code> instance from an <code>InputStream</code>. * The method assumes the character set is UTF-8. - * + * * @param inStream * @return a <code>JSON</code> instance * @throws IOException @@ -50,7 +50,7 @@ public final class JSON { /** * Creates a <code>JSON</code> instance from an unknown data type. - * + * * @param object * @return a <code>JSON</code> instance * @throws IOException @@ -66,7 +66,7 @@ public final class JSON { /** * Creates a <code>JSON</code> instance from a <code>Reader</code>. - * + * * @param reader * @return a <code>JSON</code> instance * @throws IOException @@ -79,7 +79,7 @@ public final class JSON { /** * Creates a <code>JSON</code> instance from a <code>String</code>. - * + * * @param jsonString * @return a <code>JSON</code> instance */ @@ -113,7 +113,7 @@ public final class JSON { /** * Converts this <code>JSON</code> object to the specified type. - * + * * @param targetClass * @return an object of the specified type * @throws IOException Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/Range.java URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/Range.java?rev=1818543&r1=1818542&r2=1818543&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/Range.java (original) +++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/Range.java Mon Dec 18 09:41:33 2017 @@ -22,7 +22,7 @@ package org.apache.ofbiz.base.lang; public interface Range<T> { /** Returns <code>true</code> if the lowest value in this range * occurs after the greatest value in <code>range</code>. - * + * * @param range The range to test * @return <code>true</code> if the lowest value in this range * occurs after the greatest value in <code>range</code> @@ -30,7 +30,7 @@ public interface Range<T> { boolean after(Range<T> range); /** Returns <code>true</code> if this range occurs after <code>value</code>. - * + * * @param value The value to test * @return <code>true</code> if this range occurs after <code>value</code> */ @@ -38,7 +38,7 @@ public interface Range<T> { /** Returns <code>true</code> if the greatest value in this range * occurs before the lowest value in <code>range</code>. - * + * * @param range The range to test * @return <code>true</code> if the greatest value in this range * occurs before the lowest value in <code>range</code> @@ -46,47 +46,47 @@ public interface Range<T> { boolean before(Range<T> range); /** Returns <code>true</code> if this range occurs before <code>value</code>. - * + * * @param value The value to test * @return <code>true</code> if this range occurs before <code>value</code> */ boolean before(T value); /** Returns the ending value of this range. - * + * * @return Ending value */ T end(); /** Returns <code>true</code> if this range includes <code>range</code>. - * + * * @param range The range to test * @return <code>true</code> if this range includes <code>range</code> */ boolean includes(Range<T> range); /** Returns <code>true</code> if <code>value</code> occurs within this range. - * + * * @param value The value to test * @return <code>true</code> if <code>value</code> occurs within this range */ boolean includes(T value); /** Returns <code>true</code> if the starting and ending values are equal. - * + * * @return <code>true</code> if the starting and ending values are equal */ boolean isPoint(); /** Returns <code>true</code> if this range overlaps <code>range</code>. - * + * * @param range The range to test * @return <code>true</code> if this range overlaps <code>range</code> */ boolean overlaps(Range<T> range); /** Returns the starting value of this range. - * + * * @return Starting value */ T start(); |
Free forum by Nabble | Edit this page |