Package org.rcsb.strucmotif.domain.motif
Enum Overlap
- All Implemented Interfaces:
Serializable,Comparable<Overlap>,java.lang.constant.Constable,BiPredicate<InvertedIndexResiduePairIdentifier,InvertedIndexResiduePairIdentifier>
public enum Overlap
extends Enum<Overlap>
implements BiPredicate<InvertedIndexResiduePairIdentifier,InvertedIndexResiduePairIdentifier>
Describes the overlap between two
ResiduePairIdentifier instances. Done by determining whether
LabelSelection instances equal. Can be no overlap or both overlapping. Interesting case is when 1 pair
overlaps. Can be LEFT_LEFT (left/first identifier of first word paired to left/first of second word) and so on.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoth sides overlap.Left identifier of first word corresponds to left identifier of second word.Left identifier of first word corresponds to right identifier of second word.No overlap.Right identifier of first word corresponds to left identifier of second word.Right identifier of first word corresponds to right identifier of second word. -
Method Summary
Modifier and TypeMethodDescriptionstatic OverlapofResiduePairIdentifiers(IndexResiduePairIdentifier residuePairIdentifier1, IndexResiduePairIdentifier residuePairIdentifier2) Determines the overlap between 2IndexResiduePairIdentifierinstances.booleantest(InvertedIndexResiduePairIdentifier residuePairIdentifier1, InvertedIndexResiduePairIdentifier residuePairIdentifier2) static OverlapReturns the enum constant of this type with the specified name.static Overlap[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Enum Constant Details
-
NONE
No overlap. -
LEFT_LEFT
Left identifier of first word corresponds to left identifier of second word. -
LEFT_RIGHT
Left identifier of first word corresponds to right identifier of second word. -
RIGHT_LEFT
Right identifier of first word corresponds to left identifier of second word. -
RIGHT_RIGHT
Right identifier of first word corresponds to right identifier of second word. -
BOTH
Both sides overlap.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
test
public boolean test(InvertedIndexResiduePairIdentifier residuePairIdentifier1, InvertedIndexResiduePairIdentifier residuePairIdentifier2) - Specified by:
testin interfaceBiPredicate<InvertedIndexResiduePairIdentifier,InvertedIndexResiduePairIdentifier>
-
ofResiduePairIdentifiers
public static Overlap ofResiduePairIdentifiers(IndexResiduePairIdentifier residuePairIdentifier1, IndexResiduePairIdentifier residuePairIdentifier2) Determines the overlap between 2IndexResiduePairIdentifierinstances.- Parameters:
residuePairIdentifier1- the first instanceresiduePairIdentifier2- the second instance- Returns:
- a description of the observed overlap
-