Interface ValueType

All Known Implementing Classes:
BinaryValueType, SequenceValueType, StringValueType

public interface ValueType
Since:
Java 17+
Author:
Kimi Liu
  • Method Details

    • isStringValue

      boolean isStringValue()
    • useSpecificCharacterSet

      boolean useSpecificCharacterSet()
    • isIntValue

      boolean isIntValue()
    • isTemporalType

      boolean isTemporalType()
    • numEndianBytes

      int numEndianBytes()
    • toggleEndian

      byte[] toggleEndian(byte[] b, boolean preserve)
    • toBytes

      byte[] toBytes(Object val, SpecificCharacterSet cs)
    • toString

      String toString(Object val, boolean bigEndian, int valueIndex, String defVal)
    • toStrings

      Object toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs)
    • toInt

      int toInt(Object val, boolean bigEndian, int valueIndex, int defVal)
    • toInts

      int[] toInts(Object val, boolean bigEndian)
    • toFloat

      float toFloat(Object val, boolean bigEndian, int valueIndex, float defVal)
    • toFloats

      float[] toFloats(Object val, boolean bigEndian)
    • toDouble

      double toDouble(Object val, boolean bigEndian, int valueIndex, double defVal)
    • toDoubles

      double[] toDoubles(Object val, boolean bigEndian)
    • toDate

      Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision)
    • toDate

      Date[] toDate(Object val, TimeZone tz, boolean ceil, DatePrecision precisions)
    • toValue

      Object toValue(byte[] b)
    • toValue

      Object toValue(String s, boolean bigEndian)
    • toValue

      Object toValue(String[] ss, boolean bigEndian)
    • toValue

      Object toValue(int[] is, boolean bigEndian)
    • toValue

      Object toValue(float[] fs, boolean bigEndian)
    • toValue

      Object toValue(double[] ds, boolean bigEndian)
    • toValue

      Object toValue(Date[] ds, TimeZone tz, DatePrecision precision)
    • prompt

      boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb)
    • vmOf

      int vmOf(Object val)