public interface AQByteFactory
Byte
data type.
An instance of this interface is available via aqua.type.getByte(). (For technical reasons, aqua.type.byte is not available).
Modifier and Type | Method and Description |
---|---|
boolean |
isEqual(java.lang.Object a,
java.lang.Object b)
Checks if two bytes are equal.
|
boolean |
isGreater(java.lang.Object a,
java.lang.Object b)
Checks if the parameter value
a is greater then the
parameter value b . |
boolean |
isGreaterOrEqual(java.lang.Object a,
java.lang.Object b)
Checks if the parameter value
a is greater or equal to the
parameter value b . |
boolean |
isInRange(java.lang.Object value,
java.lang.Object min,
java.lang.Object max)
Checks if the value is within a specified range, inclusive.
|
boolean |
isLess(java.lang.Object a,
java.lang.Object b)
Checks if the parameter value
a is less then the
parameter value b . |
boolean |
isLessOrEqual(java.lang.Object a,
java.lang.Object b)
Checks if the parameter value
a is less or equal to the
parameter value b . |
boolean |
isValid(java.lang.String value)
Interprets a specified value as a byte (using default platform locale).
|
java.lang.Byte |
parse(java.lang.Object value)
Creates a Byte instance assuming default platform locale.
|
java.lang.Byte |
parse(java.lang.String value,
java.lang.String pattern)
Creates a Byte instance using a specified pattern and locale.
|
java.lang.Byte |
parse(java.lang.String value,
java.lang.String pattern,
java.lang.String locale)
Interprets a specified value as a Byte using a specified pattern and locale.
|
java.lang.Byte parse(java.lang.Object value)
If conversion is successful, the method returns the resulting Byte object, otherwise it throws an exception.
value
- The value to be converted.java.lang.Byte parse(java.lang.String value, java.lang.String pattern)
If conversion is successful, the method returns the resulting Byte object, otherwise it throws an exception.
value
- The value to be converted.pattern
- The pattern used to validate the value against or null to
use the default for the Locale. Please see DecimalFormatSymbols
java.lang.Byte parse(java.lang.String value, java.lang.String pattern, java.lang.String locale)
value
- The value to be converted.pattern
- The pattern used to validate the value against or null to
use the default for the Locale. Please see DecimalFormatSymbols
locale
- The locale to use for the format, system default if null. Please see Locale
.boolean isInRange(java.lang.Object value, java.lang.Object min, java.lang.Object max)
value
- The value specified.min
- The start of the range.max
- The end of the range.boolean isLess(java.lang.Object a, java.lang.Object b)
a
is less then the
parameter value b
.a
- The specified value.b
- The value to be compared.a
is less,
and not inclusive of the parameter value of b
.boolean isLessOrEqual(java.lang.Object a, java.lang.Object b)
a
is less or equal to the
parameter value b
.a
- The specified value.b
- The value to be compared.a
is less or equal to
the parameter value of b
.boolean isGreater(java.lang.Object a, java.lang.Object b)
a
is greater then the
parameter value b
.a
- The specified value.b
- The value to be compared.a
is greater,
and not inclusive of the parameter value of b
.boolean isGreaterOrEqual(java.lang.Object a, java.lang.Object b)
a
is greater or equal to the
parameter value b
.a
- The specified value.b
- The value to be compared.a
is greater or equal to
the parameter value of b
.boolean isEqual(java.lang.Object a, java.lang.Object b)
param a The specified value.
a
- The specified compared.b
- The value to be compared.a
is equal to the
parameter value of b
.boolean isValid(java.lang.String value)
value
- The specified value.
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.