public abstract static class Operators.AbstractBinRel<X> extends Object implements Operators.BinRel<X>
Modifier and Type | Field and Description |
---|---|
protected boolean |
antireflexive |
protected boolean |
antisymmetric |
protected boolean |
reflexive |
protected boolean |
symmetric |
protected boolean |
transitive |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinRel() |
protected |
AbstractBinRel(boolean reflexive,
boolean antireflexive,
boolean symmetric,
boolean antisymmetric,
boolean transitive) |
protected |
AbstractBinRel(Operators.BinRel<?> prototype) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAntireflexive()
Indicates antireflexivity.
|
boolean |
isAntisymmetric()
Indicates anti-symmetry.
|
boolean |
isReflexive()
Indicates reflexivity.
|
boolean |
isSymmetric()
Indicates symmetry.
|
boolean |
isTransitive()
Indicates anti-symmetry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
relates
protected final boolean reflexive
protected final boolean antireflexive
protected final boolean symmetric
protected final boolean antisymmetric
protected final boolean transitive
protected AbstractBinRel(boolean reflexive, boolean antireflexive, boolean symmetric, boolean antisymmetric, boolean transitive)
protected AbstractBinRel(Operators.BinRel<?> prototype)
protected AbstractBinRel()
public final boolean isReflexive()
Operators.BinRel
x.equals(y)
implies relates(x, y)
. It
is silently assumed that preempting this case is an
optimization, i.e., that equals
runs faster than
relates.isReflexive
in interface Operators.BinRel<X>
public final boolean isAntireflexive()
Operators.BinRel
x.equals(y)
implies !relates(x,
y)
. It is silently assumed that preempting this case is
an optimization, i.e., that equals
runs faster
than relates.isAntireflexive
in interface Operators.BinRel<X>
public final boolean isSymmetric()
Operators.BinRel
relates(y, x)
implies relates(x, y)
.isSymmetric
in interface Operators.BinRel<X>
public final boolean isAntisymmetric()
Operators.BinRel
relates(y, x) &
relates(x, y)
implies x.equals(y)
.isAntisymmetric
in interface Operators.BinRel<X>
public final boolean isTransitive()
Operators.BinRel
relates(y, x) &
relates(y, z)
implies x.equals(z)
.isTransitive
in interface Operators.BinRel<X>
see also the complete user documentation .