Improved: General refactoring and code improvements, package

org.apache.ofbiz.base.lang.
(OFBIZ-9931)

Thanks Dennis Balkir for reporting and providing the patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818543 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Brohl
2017-12-18 09:41:33 +00:00
parent 8c4c5835ed
commit 7e765af8f9
2 changed files with 15 additions and 15 deletions
@@ -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
@@ -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();