Class AllenRelation
java.lang.Object
org.aksw.commons.algebra.allen.AllenRelation
An immutable wrapper for a bit-pattern (of primitive type 'short') that represents the Allen relations
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AllenRelationstatic final AllenRelationstatic final AllenRelationstatic final AllenRelationstatic final AllenRelationDummy relation with a 0 bit pattern.static final AllenRelationstatic final AllenRelationstatic final AllenRelationstatic final AllenRelationstatic final AllenRelationstatic final AllenRelationstatic final AllenRelationprotected final shortstatic final AllenRelationstatic final AllenRelation -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAllenRelation(short pattern) The public API to create instances is.invalid reference
#create(short) -
Method Summary
Modifier and TypeMethodDescriptionbooleanshortinthashCode()invert()Create a new relation with the inversebooleanisEmpty()static AllenRelationof(short pattern) static AllenRelationof(short pattern, short... additionalPatterns) Combine all given patterns with bitwise ORtoString()union(AllenRelation other) static AllenRelationunion(AllenRelation... others)
-
Field Details
-
EMPTY
Dummy relation with a 0 bit pattern. Useful for reduce/fold operations. -
BEFORE
-
AFTER
-
DURING
-
CONTAINS
-
OVERLAPS
-
OVERLAPPEDBY
-
MEETS
-
METBY
-
STARTS
-
STARTEDBY
-
FINISHES
-
FINISHEDBY
-
EQUALS
-
pattern
protected final short pattern
-
-
Constructor Details
-
AllenRelation
protected AllenRelation(short pattern) The public API to create instances is.invalid reference
#create(short)
-
-
Method Details
-
getPattern
public short getPattern() -
invert
Create a new relation with the inverse -
of
-
isEmpty
public boolean isEmpty() -
of
Combine all given patterns with bitwise OR -
union
-
union
-
toString
-
hashCode
-
equals
-