Class SubString

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class SubString
    extends UnaryFieldExpression
    Substring field expression.
    See Also:
    Serialized Form
    • Constructor Detail

      • SubString

        public SubString​(java.lang.String fieldName,
                         int offset,
                         int length)
      • SubString

        public SubString​(FieldExpression expression,
                         int offset,
                         int length)
    • Method Detail

      • getOffset

        public int getOffset()
        Get the offset for the start of the substring.

        If offset is negative, the actual start offset will be computed on a per value basis to be valueLength + offset. For example, setting the offset to -4 and the length to 4 will extract the last for characters of each value.

      • setOffset

        public void setOffset​(int value)
        Set the offset for the start of the substring.
      • getLength

        public int getLength()
        Get the max length of the substring.
      • setLength

        public void setLength​(int value)
        Set the max length of the substring.