Class EnumArrayField


public class EnumArrayField extends SimpleField<Object>
A field that contains an array (having one or more dimensions) of values chosen from an ordered list of unique String identifiers.

Two instances of this class are considered compatible only when their ordered lists of identifiers and dimensions are identical.

  • Method Details

    • getBaseType

      public EnumValueEncoding getBaseType()
      Get the base encoding.
      Returns:
      array base encoding
    • getDimensions

      public int getDimensions()
      Get the number of enum array dimensions.
      Returns:
      number of dimensions, a value from 1 to 255
    • visit

      public <R> R visit(FieldSwitch<R> target)
      Description copied from class: Field
      Apply visitor pattern.
      Overrides:
      visit in class SimpleField<Object>
      Type Parameters:
      R - visitor return type
      Parameters:
      target - target to invoke
      Returns:
      return value from the method of target corresponding to this instance's type
    • toString

      public String toString()
      Overrides:
      toString in class SimpleField<Object>