public class WellSet extends Object implements Iterable<Well>, Comparable<WellSet>
| Constructor and Description |
|---|
WellSet()
Creates a new Integer well set.
|
WellSet(Collection<Well> collection)
Creates a new well set from a collection of wells.
|
WellSet(Collection<Well> collection,
String label)
Creates a new well set from a collection of wells and a label.
|
WellSet(Well[] wells)
Creates a new well set from an array of wells.
|
WellSet(Well[] wells,
String label)
Creates a new well set from an array of wells and a label.
|
WellSet(WellSet set)
Creates a new well set from another well set.
|
WellSet(WellSet set,
String label)
Creates a new well set from another well set and a label.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Collection<Well> collection)
Adds a collection of wells to the well set.
|
boolean |
add(Well well)
Adds a well to the well set.
|
boolean |
add(Well[] array)
Adds an array of wells to the well set.
|
boolean |
add(WellSet set)
Adds the wells in the input well set.
|
Set<Well> |
allWells()
Returns the well set.
|
Well |
ceiling(Well well)
Returns the least well in this set greater than or equal to the given
well, or null if there is no such well.
|
void |
clear()
Clears the set.
|
int |
compareTo(WellSet set)
Compares two well set objects.
|
boolean |
contains(Collection<Well> collection)
Returns true if all the input wells are found within the well set.
|
boolean |
contains(String well)
Returns true if the well is part of the well set.
|
boolean |
contains(String wellList,
String delimiter)
Returns true if the wells are part of the set.
|
boolean |
contains(Well well)
Returns true if the well is part of the well set.
|
boolean |
contains(Well[] array)
Returns true if all the input wells are found within the well array.
|
boolean |
contains(WellIndex index)
Returns true if the well is part of the set.
|
boolean |
contains(WellList list)
Returns true if the wells exist in the set.
|
boolean |
contains(WellSet set)
Returns true if all the input wells are found within the well set.
|
Iterator<Well> |
descendingIterator()
Returns an iterator over the wells in this set in descending order.
|
Set<Well> |
descendingSet()
Returns a reverse order view of the wells contained in this set.
|
boolean |
equals(Object object)
Well sets are equivalent if they contain the same wells
and label.
|
Well |
first()
Returns the first well in the set.
|
Well |
floor(Well well)
Returns the greatest well in this set less than or equal to the given
well, or null if there is no such well.
|
WellSet |
getColumn(int column)
Returns all wells with the matching column index.
|
WellSet |
getRow(int row)
Returns all wells with the matching row index.
|
WellSet |
getWells(Collection<Well> collection)
Returns a well set holding all plate wells that match the indices or null
if there are no matches.
|
Well |
getWells(String well)
Returns the well with the input indices.
|
WellSet |
getWells(String wellList,
String delimiter)
Returns a well set holding all plate wells that match the indices or
null if there are no matches.
|
Well |
getWells(Well input)
Returns the well or null if no such well exists.
|
WellSet |
getWells(Well[] array)
Returns a well set holding all wells that match the indices or null
if there are no matches.
|
Well |
getWells(WellIndex index)
Returns the well or null if the well does not exist.
|
WellSet |
getWells(WellList list)
Returns a well set containing the wells in the list or null if none of
the wells exist.
|
WellSet |
getWells(WellSet input)
Returns a well set holding all plate wells that match the indices or null
if there are no matches.
|
int |
hashCode()
Hash code uses the wells and label.
|
Set<Well> |
headSet(int index)
Returns a view of the portion of this set whose wells are less than
or equal to the index.
|
Set<Well> |
headSet(int index,
boolean inclusive)
Returns a view of the portion of this set whose wells are less than
(or equal to, if inclusive is true) the index.
|
Set<Well> |
headSet(Well well)
Returns a view of the portion of this set whose wells are strictly
less than the input well.
|
Set<Well> |
headSet(Well well,
boolean inclusive)
Returns a view of the portion of this set whose wells are less than
(or equal to, if inclusive is true) to the input well.
|
Well |
higher(Well well)
Returns the least well in this set strictly greater than the given
well, or null if there is no such well.
|
boolean |
isEmpty()
Returns true if this set contains no wells.
|
Iterator<Well> |
iterator()
Returns an iterator over the wells in this set in ascending order.
|
String |
label()
Returns the label.
|
Well |
last()
Returns the last well in the set.
|
Well |
lower(Well well)
Returns the greatest well in this set strictly less than the given well,
or null if there is no such well.
|
Well |
pollFirst()
Retrieves and removes the first (lowest) well, or returns null if this
set is empty.
|
Well |
pollLast()
Retrieves and removes the last (highest) well, or returns null if this
set is empty.
|
boolean |
remove(Collection<Well> collection)
Removes a collection of wells from the well set.
|
boolean |
remove(String well)
Removes the well with the well index.
|
boolean |
remove(String wellList,
String delimiter)
Removes a well or a list of delimiter separated wells.
|
boolean |
remove(Well well)
Removes a well from the well set.
|
boolean |
remove(Well[] array)
Removes an array of wells from the well set.
|
boolean |
remove(WellIndex index)
Removes the well with the well index.
|
boolean |
remove(WellList list)
Removes the wells in the list.
|
boolean |
remove(WellSet set)
Removes the wells in the input well set.
|
boolean |
replace(Collection<Well> collection)
Replaces the set wells with the wells from the collection.
|
boolean |
replace(Well well)
Replaces the set well with the input well.
|
boolean |
replace(Well[] array)
Replaces the set wells with the wells from the array.
|
boolean |
replace(WellSet set)
Replaces the set wells with the wells from the input set.
|
boolean |
retain(Collection<Well> collection)
Retains the wells in the collection if they exist.
|
boolean |
retain(String well)
Retains the well.
|
boolean |
retain(String wellList,
String delimiter)
Retain the wells in the delimiter separated list.
|
boolean |
retain(Well well)
Retains the input well if it exists.
|
boolean |
retain(Well[] array)
Retains the wells in the array if they exist.
|
boolean |
retain(WellIndex index)
Retains the well with the well index.
|
boolean |
retain(WellList list)
Retains the wells in the list.
|
boolean |
retain(WellSet set)
Retains the wells in the well set if they exist.
|
void |
setLabel(String label)
Sets the set label.
|
int |
size()
Returns the size of the well set.
|
Set<Well> |
subSet(int index1,
boolean inclusive1,
int index2,
boolean inclusive2)
Returns a view of the portion of this set between the indices.
|
Set<Well> |
subSet(int index1,
int index2)
Returns a view of the portion of this set between the indices.
|
Set<Well> |
subSet(Well well1,
boolean inclusive1,
Well well2,
boolean inclusive2)
Returns a view of the portion of this set whose wells range from
the first input well to the second input well.
|
Set<Well> |
subSet(Well well1,
Well well2)
Returns a view of the portion of this set whose wells range from
the first input well inclusive to the second input well inclusive.
|
Set<Well> |
tailSet(int index)
Returns a view of the portion of this set whose wells are greater than
or equal to the index.
|
Set<Well> |
tailSet(int index,
boolean inclusive)
Returns a view of the portion of this set whose wells are greater than
(or equal to, if inclusive is true) the index.
|
Set<Well> |
tailSet(Well well)
Returns a view of the portion of this set whose wells are greater than
or equal to the input well.
|
Set<Well> |
tailSet(Well well,
boolean inclusive)
Returns a view of the portion of this set whose wells are greater than
(or equal to, if inclusive is true) the input well.
|
String |
toString()
Returns a string containing the label and wells.
|
String[] |
toStringArray()
Returns the well set as an array of well IDs.
|
Well[] |
toWellArray()
Returns the well set as an array of wells.
|
WellList |
wellList()
Returns all indices in the set in a well list.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic WellSet()
public WellSet(Collection<Well> collection)
Collection - the collection of wellspublic WellSet(Collection<Well> collection, String label)
Collection - the collection of wellsString - the labelpublic WellSet(WellSet set)
WellSet - the well setpublic WellSet(WellSet set, String label)
WellSet - the well setString - the labelpublic WellSet(Well[] wells)
Well[] - the array of wellspublic boolean add(Well well)
int - the wellpublic boolean add(WellSet set)
WellSet - the well setpublic boolean add(Collection<Well> collection)
Collection - the well collectionpublic boolean add(Well[] array)
Well[] - the well arraypublic boolean remove(Well well)
int - the wellpublic boolean remove(WellSet set)
WellSet - the well setpublic boolean remove(Collection<Well> collection)
Collection - the well collectionpublic boolean remove(Well[] array)
Well[] - the well arraypublic boolean remove(String wellList, String delimiter)
String - the well or list of wellsString - the list delimiterpublic boolean remove(String well)
String - the well indexpublic boolean remove(WellIndex index)
public boolean remove(WellList list)
WellList - the well listpublic boolean replace(Well well)
Well - the well for replacementpublic boolean replace(WellSet set)
WellSet - the well setpublic boolean replace(Collection<Well> collection)
Collection - the data collectionpublic boolean replace(Well[] array)
Well[] - the array of wellspublic boolean retain(Well well)
Well - the wellpublic boolean retain(WellSet set)
WellSet - the well setpublic boolean retain(Collection<Well> collection)
Collection - the data collectionpublic boolean retain(Well[] array)
WellInteger[] - the array of wellspublic boolean retain(String wellList, String delimiter)
String - delimiter separated list of wellsString - delimiter for the list of wellspublic boolean retain(String well)
String - the well indexpublic boolean retain(WellIndex index)
WellIndex - the well indexpublic boolean retain(WellList list)
WellList - the well listpublic boolean contains(Well well)
Well - the wellpublic boolean contains(WellSet set)
WellSet - the input wellspublic boolean contains(Collection<Well> collection)
Collection - the input wellspublic boolean contains(Well[] array)
WellInteger[] - the input wellspublic boolean contains(String wellList, String delimiter)
String - delimiter separated list of wellsString - delimiter for the list of wellspublic boolean contains(String well)
String - the wellpublic boolean contains(WellIndex index)
WellIndex - the well indexpublic boolean contains(WellList list)
WellList - the well listpublic Iterator<Well> descendingIterator()
public Set<Well> descendingSet()
public Well first()
public Well last()
public Well ceiling(Well well)
Well - the wellpublic Well floor(Well well)
public Set<Well> headSet(Well well)
Well - input wellpublic Set<Well> headSet(Well well, boolean inclusive)
Well - input wellboolean - a true value retains the input well in the sub setpublic Set<Well> headSet(int index)
Well - the input wellpublic Set<Well> headSet(int index, boolean inclusive)
Well - the input wellpublic Well higher(Well well)
Well - input wellpublic boolean isEmpty()
public Iterator<Well> iterator()
public Well lower(Well well)
Well - input wellpublic Well pollFirst()
public Well pollLast()
public Set<Well> subSet(Well well1, boolean inclusive1, Well well2, boolean inclusive2)
Well - the first input wellWell - the second input wellboolean - includes the first input well in the returned setboolean - includes the second input well in the returned setpublic Set<Well> subSet(Well well1, Well well2)
Well - the first input wellWell - the second input wellpublic Set<Well> subSet(int index1, boolean inclusive1, int index2, boolean inclusive2)
int - the first indexint - the second indexboolean - includes the first input well in the returned setboolean - includes the second input well in the returned setpublic Set<Well> subSet(int index1, int index2)
int - the first indexint - the second indexpublic Set<Well> tailSet(Well well)
Well - the input wellpublic Set<Well> tailSet(Well well, boolean inclusive)
Well - the input wellpublic Set<Well> tailSet(int index)
Well - the input wellpublic Set<Well> tailSet(int index, boolean inclusive)
Well - the input wellpublic Well getWells(Well input)
Well - the wellpublic WellSet getWells(WellSet input)
WellSet - the input well setpublic WellSet getWells(Collection<Well> collection)
Collection - collection of wellspublic WellSet getWells(Well[] array)
WellInteger[] - array of well indicespublic WellSet getWells(String wellList, String delimiter)
String - delimiter separated list of wellsString - delimiter for the list of wellspublic Well getWells(String well)
String - the well indexpublic Well getWells(WellIndex index)
WellIndex - the well indexpublic WellSet getWells(WellList list)
WellList - the well listpublic WellSet getRow(int row)
int - the row indexpublic WellSet getColumn(int column)
int - the row indexpublic void clear()
public Well[] toWellArray()
public void setLabel(String label)
String - the new labelpublic int size()
public WellList wellList()
public String[] toStringArray()
public String label()
public String toString()
public boolean equals(Object object)
public int hashCode()
public int compareTo(WellSet set)
compareTo in interface Comparable<WellSet>Copyright © 2017. All rights reserved.