public final class DescriptorList extends java.lang.Object implements java.lang.Comparable<DescriptorList>
getPairing()
method.Descriptor
Constructor and Description |
---|
DescriptorList(Descriptor... ignore)
Creates a descriptor list that ignores the provided descriptors as varargs.
|
DescriptorList(DescriptorList head,
DescriptorList tail)
Creates a new list from a provided head and tail.
|
DescriptorList(java.util.List<Descriptor> ignores)
Creates a descriptor list that ignores the provided descriptors as a
List . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Descriptor descriptor)
Adds a descriptor to the descriptor list.
|
boolean |
addAll(java.util.Collection<? extends Descriptor> descriptors)
Adds multiple descriptors to the descriptor list.
|
java.util.List<DescriptorList> |
append(java.util.Collection<? extends DescriptorList> lists)
Appends multiple descriptor lists.
|
void |
clear()
Clear the descriptor list and resets the pair value.
|
int |
compareTo(DescriptorList o) |
int |
getPairing()
Access a positive integer that represents the like/unlike pairings of this descriptor list.
|
boolean |
ignore(Descriptor ignore)
Adds a descriptor that should be ignored.
|
boolean |
ignoreAll(java.util.Collection<? extends Descriptor> ignores)
Adds multiple descriptors that should be ignored.
|
java.lang.String |
toString() |
public DescriptorList(Descriptor... ignore)
ignore
- one or more descriptors to ignorepublic DescriptorList(java.util.List<Descriptor> ignores)
List
.ignores
- a list descriptors to ignorepublic DescriptorList(DescriptorList head, DescriptorList tail)
head
- the head of the list (prefix)tail
- the tail of the list (suffix)public boolean ignore(Descriptor ignore)
ignore
- the descriptor to ignorepublic boolean ignoreAll(java.util.Collection<? extends Descriptor> ignores)
ignores
- descriptors to ignorepublic boolean add(Descriptor descriptor)
descriptor
- the descriptor to add.public boolean addAll(java.util.Collection<? extends Descriptor> descriptors)
descriptors
- a collection of descriptors to be addedpublic int getPairing()
public java.util.List<DescriptorList> append(java.util.Collection<? extends DescriptorList> lists)
lists
- multiple descriptor lists to be appended to this list.public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(DescriptorList o)
compareTo
in interface java.lang.Comparable<DescriptorList>
public void clear()