Package org.eclipse.imagen.media.range
Class RangeByte
This class is a subclass of the
Range class handling byte data.
Byte data is represented as an integer & 0xFF to avoid unsigned.
-
Nested Class Summary
Nested classes/interfaces inherited from class Range
Range.DataType -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(byte value) Method for checking if a byte value is contained inside the RangeReturns the Range data TypegetMax()Range max, represented as Integer& 0xFF"unsigned" byte.getMax(boolean isMaxIncluded) Range max, represented as Integer& 0xFF"unsigned" byte.getMin()Returns the minimum bound of the RangegetMin(boolean isMinIncluded) Range min, represented as Integer& 0xFF"unsigned" byte.intersection(Range other) booleanisPoint()Indicates if the Range is a degenerated single point Range or notMethods inherited from class Range
compare, contains, contains, contains, contains, contains, contains, containsN, equals, hash, hash, hash, hashCode, intersects, isMaxIncluded, isMinIncluded, isNaN, isNanIncluded, toString
-
Field Details
-
FULL_RANGE
-
-
Method Details
-
contains
public boolean contains(byte value) Description copied from class:RangeMethod for checking if a byte value is contained inside the Range -
getDataType
Description copied from class:RangeReturns the Range data Type- Specified by:
getDataTypein classRange
-
isPoint
public boolean isPoint()Description copied from class:RangeIndicates if the Range is a degenerated single point Range or not -
getMax
Range max, represented as Integer& 0xFF"unsigned" byte. To use: {@code byte value = (byte) range.getMax().byteValue(); @return Integer masked to {@code 0xFF}. -
getMax
Range max, represented as Integer& 0xFF"unsigned" byte. To use: {@code byte value = (byte) range.getMax().byteValue(); @param isMaxIncluded boolean indicating if the maximum bound is included @return Integer masked to {@code 0xFF}. -
getMin
Range min, represented as Integer& 0xFF"unsigned" byte. To use: {@code byte value = (byte) range.getMin().byteValue(); @return Integer masked to {@code 0xFF}. -
getMin
Description copied from class:RangeReturns the minimum bound of the Range -
union
-
intersection
- Specified by:
intersectionin classRange
-