Package org.aoju.bus.image.galaxy.data
Enum Class BinaryValueType
- All Implemented Interfaces:
Serializable,Comparable<BinaryValueType>,Constable,ValueType
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanintbooleanprompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb) protected byte[]toBytes(double d, byte[] b, int off, boolean bigEndian) protected byte[]toBytes(float f, byte[] b, int off, boolean bigEndian) protected byte[]toBytes(int i, byte[] b, int off, boolean bigEndian) byte[]toBytes(Object val, SpecificCharacterSet cs) protected byte[]Date[]toDate(Object val, TimeZone tz, boolean ceil, DatePrecision precisions) toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision) protected doubletoDouble(byte[] b, int off, boolean bigEndian) doubledouble[]protected floattoFloat(byte[] b, int off, boolean bigEndian) floatfloat[]protected inttoInt(byte[] b, int off, boolean bigEndian) intint[]protected StringtoString(byte[] b, int off, boolean bigEndian) toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs) toValue(byte[] b) toValue(double[] ds, boolean bigEndian) toValue(float[] fs, boolean bigEndian) toValue(int[] is, boolean bigEndian) toValue(Date[] ds, TimeZone tz, DatePrecision precision) booleanstatic BinaryValueTypeReturns the enum constant of this class with the specified name.static BinaryValueType[]values()Returns an array containing the constants of this enum class, in the order they are declared.intMethods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.aoju.bus.image.galaxy.data.ValueType
toggleEndian
-
Enum Constant Details
-
BYTE
-
SHORT
-
USHORT
-
INT
-
UINT
-
TAG
-
FLOAT
-
DOUBLE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isIntValue
public boolean isIntValue()- Specified by:
isIntValuein interfaceValueType
-
isStringValue
public boolean isStringValue()- Specified by:
isStringValuein interfaceValueType
-
useSpecificCharacterSet
public boolean useSpecificCharacterSet()- Specified by:
useSpecificCharacterSetin interfaceValueType
-
isTemporalType
public boolean isTemporalType()- Specified by:
isTemporalTypein interfaceValueType
-
numEndianBytes
public int numEndianBytes()- Specified by:
numEndianBytesin interfaceValueType
-
toString
-
toInt
protected int toInt(byte[] b, int off, boolean bigEndian) -
toFloat
protected float toFloat(byte[] b, int off, boolean bigEndian) -
toDouble
protected double toDouble(byte[] b, int off, boolean bigEndian) -
toBytes
-
toBytes
protected byte[] toBytes(int i, byte[] b, int off, boolean bigEndian) -
toBytes
protected byte[] toBytes(float f, byte[] b, int off, boolean bigEndian) -
toBytes
protected byte[] toBytes(double d, byte[] b, int off, boolean bigEndian) -
toBytes
-
toString
-
toStrings
-
toInt
-
toInts
-
toFloat
-
toFloats
-
toDouble
-
toDoubles
-
toDate
-
toDate
-
toValue
-
toValue
-
toValue
-
toValue
-
toValue
-
toValue
-
toValue
-
prompt
public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb) -
vmOf
-