Class OperatorImpl

  • All Implemented Interfaces:
    Operator
    Direct Known Subclasses:
    FunctionNameImpl, SpatialOperatorImpl

    public class OperatorImpl
    extends Object
    implements Operator
    Implementation of the Operator interface.
    Author:
    Justin Deoliveira, The Open Planning Project
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)
      Equals should be implemented simply in terms of getName()
      String getName()
      Name of supported Operator.
      int hashCode()
      HashCode should be implemented simply in terms of getName().
      void setName​(String name)  
      String toString()  
      • Methods inherited from class Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OperatorImpl

        public OperatorImpl​(String name)
      • OperatorImpl

        public OperatorImpl​(Operator copy)
    • Method Detail

      • setName

        public void setName​(String name)
      • getName

        public String getName()
        Description copied from interface: Operator
        Name of supported Operator.

        Each filter subclass has an associated name (such as BBOX or EqualsTo), you can use this name to determine if a matching Operator is defined as part of FilterCapabilities.

        Specified by:
        getName in interface Operator
      • hashCode

        public int hashCode()
        Description copied from interface: Operator
        HashCode should be implemented simply in terms of getName().
        Specified by:
        hashCode in interface Operator
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Description copied from interface: Operator
        Equals should be implemented simply in terms of getName()
        Specified by:
        equals in interface Operator
        Overrides:
        equals in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object