java.lang.Object
com.singularsys.extensions.field.AbstractComparativeField
com.singularsys.extensions.field.implementations.StringField
All Implemented Interfaces:
FieldI, Serializable

public final class StringField extends AbstractComparativeField
String concatenation, and comparison
Author:
Richard Morris
See Also:
  • Constructor Details

    • StringField

      public StringField()
  • Method Details

    • add

      public Object add(Object l, Object r)
      Description copied from interface: FieldI
      Add two members of the field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      an object representing the result or null if it can not be evaluated.
    • sub

      public Object sub(Object l, Object r)
      Description copied from interface: FieldI
      Subtract two members of the field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      null always
    • neg

      public Object neg(Object l)
      Description copied from interface: FieldI
      The negation -x of an element.
      Parameters:
      l - the argument
      Returns:
      null always
    • cmp

      public Integer cmp(Object l, Object r)
      Uses String.compareTo(String)
      Specified by:
      cmp in class AbstractComparativeField
      Parameters:
      l -
      r -
      Returns:
      -1, 0, 1 if l < r, l==r or l > r respectively, or null if comparison cannot be carried out or
    • mul

      public Object mul(Object l, Object r)
      Not implemented for this field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      null
    • div

      public Object div(Object l, Object r)
      Not implemented for this field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      null
    • mod

      public Object mod(Object l, Object r)
      Not implemented for this field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      null
    • pow

      public Object pow(Object l, Object r)
      Not implemented for this field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      null
    • and

      public Boolean and(Object l, Object r)
      Not implemented for this field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      null
    • or

      public Boolean or(Object l, Object r)
      Not implemented for this field.
      Parameters:
      l - left-hand argument
      r - right-hand argument
      Returns:
      null
    • not

      public Boolean not(Object l)
      Not implemented for this field.
      Parameters:
      l - argument
      Returns:
      null
    • getOne

      public Object getOne()
      Not defined for this field
      Returns:
      null
    • getZero

      public Object getZero()
      Not defined for this field
      Returns:
      null