- All Superinterfaces:
org.aya.pretty.doc.Docile,Selector.Candidate<Relation>
- All Known Implementing Classes:
Relation.Decrease,Relation.Unknown
public sealed interface Relation
extends org.aya.pretty.doc.Docile, Selector.Candidate<Relation>
permits Relation.Unknown, Relation.Decrease
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recorddecrease of callee argument wrt.static final recordincrease or unrelated of callee argument wrt. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Relationdefault Selector.DecrOrdCompare two relations by their decrease amount.static @NotNull Relationdecr(boolean usable, int size) static @NotNull Relationeq()static @NotNull RelationfromCompare(int compare) default booleandefault booleanstatic @NotNull Relationlt()default @NotNull Relationdefault @NotNull org.aya.pretty.doc.DoctoDoc()static @NotNull Relationunk()Methods inherited from interface org.aya.terck.Selector.Candidate
notWorseThan
-
Method Details
-
toDoc
@NotNull default @NotNull org.aya.pretty.doc.Doc toDoc()- Specified by:
toDocin interfaceorg.aya.pretty.doc.Docile
-
mul
-
add
- Returns:
- the side that decreases more
-
compare
Compare two relations by their decrease amount.- Specified by:
comparein interfaceSelector.Candidate<Relation>- Returns:
Selector.DecrOrd.Ltif this decreases less than the other,Selector.DecrOrd.Gtif this decreases more.
-
isUnknown
default boolean isUnknown() -
isDecreasing
default boolean isDecreasing() -
fromCompare
-
decr
-
eq
-
lt
-
unk
-