Package hydra.ext.cypher.features
Class PredicateFunctionFeatures
- java.lang.Object
-
- hydra.ext.cypher.features.PredicateFunctionFeatures
-
- All Implemented Interfaces:
java.io.Serializable
public class PredicateFunctionFeatures extends java.lang.Object implements java.io.SerializablePredicate functions- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.BooleanallThe all() function.java.lang.BooleananyThe any() function.java.lang.BooleanexistsThe exists() function.static NameFIELD_NAME_ALLstatic NameFIELD_NAME_ANYstatic NameFIELD_NAME_EXISTSstatic NameFIELD_NAME_IS_EMPTYstatic NameFIELD_NAME_NONEstatic NameFIELD_NAME_SINGLEjava.lang.BooleanisEmptyThe isEmpty() function.java.lang.BooleannoneThe none() function.java.lang.BooleansingleThe single() function.static NameTYPE_NAME
-
Constructor Summary
Constructors Constructor Description PredicateFunctionFeatures(java.lang.Boolean all, java.lang.Boolean any, java.lang.Boolean exists, java.lang.Boolean isEmpty, java.lang.Boolean none, java.lang.Boolean single)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()PredicateFunctionFeatureswithAll(java.lang.Boolean all)PredicateFunctionFeatureswithAny(java.lang.Boolean any)PredicateFunctionFeatureswithExists(java.lang.Boolean exists)PredicateFunctionFeatureswithIsEmpty(java.lang.Boolean isEmpty)PredicateFunctionFeatureswithNone(java.lang.Boolean none)PredicateFunctionFeatureswithSingle(java.lang.Boolean single)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_ALL
public static final Name FIELD_NAME_ALL
-
FIELD_NAME_ANY
public static final Name FIELD_NAME_ANY
-
FIELD_NAME_EXISTS
public static final Name FIELD_NAME_EXISTS
-
FIELD_NAME_IS_EMPTY
public static final Name FIELD_NAME_IS_EMPTY
-
FIELD_NAME_NONE
public static final Name FIELD_NAME_NONE
-
FIELD_NAME_SINGLE
public static final Name FIELD_NAME_SINGLE
-
all
public final java.lang.Boolean all
The all() function. Returns true if the predicate holds for all elements in the given LIST<ANY>.
-
any
public final java.lang.Boolean any
The any() function. Returns true if the predicate holds for at least one element in the given LIST<ANY>.
-
exists
public final java.lang.Boolean exists
The exists() function. Returns true if a match for the pattern exists in the graph.
-
isEmpty
public final java.lang.Boolean isEmpty
The isEmpty() function. Checks whether a LIST<ANY> is empty.; Checks whether a MAP is empty.; Checks whether a STRING is empty.
-
none
public final java.lang.Boolean none
The none() function. Returns true if the predicate holds for no element in the given LIST<ANY>.
-
single
public final java.lang.Boolean single
The single() function. Returns true if the predicate holds for exactly one of the elements in the given LIST<ANY>.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
withAll
public PredicateFunctionFeatures withAll(java.lang.Boolean all)
-
withAny
public PredicateFunctionFeatures withAny(java.lang.Boolean any)
-
withExists
public PredicateFunctionFeatures withExists(java.lang.Boolean exists)
-
withIsEmpty
public PredicateFunctionFeatures withIsEmpty(java.lang.Boolean isEmpty)
-
withNone
public PredicateFunctionFeatures withNone(java.lang.Boolean none)
-
withSingle
public PredicateFunctionFeatures withSingle(java.lang.Boolean single)
-
-