Class Predicate

java.lang.Object
org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
dev.vality.damsel.domain.Predicate
All Implemented Interfaces:
Serializable, Comparable<Predicate>, org.apache.thrift.TBase<Predicate,​Predicate._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-10-25")
public class Predicate
extends org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
See Also:
Serialized Form
  • Field Details

    • metaDataMap

      public static final Map<Predicate._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

  • Method Details

    • deepCopy

      public Predicate deepCopy()
    • constant

      public static Predicate constant​(boolean value)
    • condition

      public static Predicate condition​(Condition value)
    • is_not

      public static Predicate is_not​(Predicate value)
    • all_of

      public static Predicate all_of​(Set<Predicate> value)
    • any_of

      public static Predicate any_of​(Set<Predicate> value)
    • criterion

      public static Predicate criterion​(CriterionRef value)
    • checkType

      protected void checkType​(Predicate._Fields setField, Object value) throws ClassCastException
      Specified by:
      checkType in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
      Throws:
      ClassCastException
    • standardSchemeReadValue

      protected Object standardSchemeReadValue​(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException
      Specified by:
      standardSchemeReadValue in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
      Throws:
      org.apache.thrift.TException
    • standardSchemeWriteValue

      protected void standardSchemeWriteValue​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      standardSchemeWriteValue in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeReadValue

      protected Object tupleSchemeReadValue​(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeReadValue in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeWriteValue

      protected void tupleSchemeWriteValue​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeWriteValue in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
      Throws:
      org.apache.thrift.TException
    • getFieldDesc

      protected org.apache.thrift.protocol.TField getFieldDesc​(Predicate._Fields setField)
      Specified by:
      getFieldDesc in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
    • getStructDesc

      protected org.apache.thrift.protocol.TStruct getStructDesc()
      Specified by:
      getStructDesc in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
    • enumForId

      protected Predicate._Fields enumForId​(short id)
      Specified by:
      enumForId in class org.apache.thrift.TUnion<Predicate,​Predicate._Fields>
    • getFields

      public Predicate._Fields[] getFields()
    • getFieldMetaData

      public Map<Predicate._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
    • fieldForId

      public Predicate._Fields fieldForId​(int fieldId)
    • getConstant

      public boolean getConstant()
    • setConstant

      public void setConstant​(boolean value)
    • getCondition

      public Condition getCondition()
    • setCondition

      public void setCondition​(Condition value)
    • getIsNot

      public Predicate getIsNot()
    • setIsNot

      public void setIsNot​(Predicate value)
    • getAllOf

      public Set<Predicate> getAllOf()
    • setAllOf

      public void setAllOf​(Set<Predicate> value)
    • getAnyOf

      public Set<Predicate> getAnyOf()
    • setAnyOf

      public void setAnyOf​(Set<Predicate> value)
    • getCriterion

      public CriterionRef getCriterion()
    • setCriterion

      public void setCriterion​(CriterionRef value)
    • isSetConstant

      public boolean isSetConstant()
    • isSetCondition

      public boolean isSetCondition()
    • isSetIsNot

      public boolean isSetIsNot()
    • isSetAllOf

      public boolean isSetAllOf()
    • isSetAnyOf

      public boolean isSetAnyOf()
    • isSetCriterion

      public boolean isSetCriterion()
    • equals

      public boolean equals​(Object other)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(Predicate other)
    • compareTo

      public int compareTo​(Predicate other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object