Package org.aoju.bus.image.galaxy.data
Enum Class VR
- All Implemented Interfaces:
Serializable,Comparable<VR>,Constable
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected final booleanprotected final intprotected final ValueType -
Method Summary
Modifier and TypeMethodDescriptionintcode()intbooleanbooleanbooleanbooleanintintbooleanprompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb) byte[]toBytes(Object val, SpecificCharacterSet cs) toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision) Date[]toDates(Object val, TimeZone tz, boolean ceil, DatePrecision precisions) doubledouble[]floatfloat[]byte[]toggleEndian(byte[] b, boolean preserve) intint[]toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs) toValue(Date[] ds, TimeZone tz, DatePrecision precision) booleanstatic VRvalueOf(int code) Returns the enum constant of this class with the specified name.static VRReturns the enum constant of this class with the specified name.static VR[]values()Returns an array containing the constants of this enum class, in the order they are declared.int
-
Enum Constant Details
-
AE
-
AS
-
AT
-
CS
-
DA
-
DS
-
DT
-
FD
-
FL
-
IS
-
LO
-
LT
-
OB
-
OD
-
OF
-
OL
-
OW
-
PN
-
SH
-
SL
-
SQ
-
SS
-
ST
-
TM
-
UC
-
UI
-
UL
-
UN
-
UR
-
US
-
UT
-
-
Field Details
-
code
protected final int code -
headerLength
protected final int headerLength -
paddingByte
protected final int paddingByte -
valueType
-
inlineBinary
protected final boolean inlineBinary
-
-
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
-
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:
code- 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
-
code
public int code() -
headerLength
public int headerLength() -
paddingByte
public int paddingByte() -
isTemporalType
public boolean isTemporalType() -
isStringType
public boolean isStringType() -
useSpecificCharacterSet
public boolean useSpecificCharacterSet() -
isIntType
public boolean isIntType() -
isInlineBinary
public boolean isInlineBinary() -
numEndianBytes
public int numEndianBytes() -
toggleEndian
public byte[] toggleEndian(byte[] b, boolean preserve) -
toBytes
-
toStrings
-
toString
-
toInt
-
toInts
-
toFloat
-
toFloats
-
toDouble
-
toDoubles
-
toDate
public Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision) -
toDates
-
toValue
-
prompt
public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb) -
vmOf
-