public class Stack extends Object implements Iterable<Plate>
| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMNS_12WELL |
static int |
COLUMNS_1536WELL |
static int |
COLUMNS_24WELL |
static int |
COLUMNS_384WELL |
static int |
COLUMNS_48WELL |
static int |
COLUMNS_6WELL |
static int |
COLUMNS_96WELL |
static int |
PLATE_12WELL |
static int |
PLATE_1536WELL |
static int |
PLATE_24WELL |
static int |
PLATE_384WELL |
static int |
PLATE_48WELL |
static int |
PLATE_6WELL |
static int |
PLATE_96WELL |
static int |
PLATE_BIGDECIMAL |
static int |
PLATE_BIGINTEGER |
static int |
PLATE_DOUBLE |
static int |
PLATE_INTEGER |
static int |
ROWS_12WELL |
static int |
ROWS_1536WELL |
static int |
ROWS_24WELL |
static int |
ROWS_384WELL |
static int |
ROWS_48WELL |
static int |
ROWS_6WELL |
static int |
ROWS_96WELL |
| Constructor and Description |
|---|
Stack(Collection<Plate> platesIn)
Creates a new plate stack using the input collection of plates.
|
Stack(Collection<Plate> platesIn,
String labelIn)
Creates a new plate stack using the input collection of plates and label.
|
Stack(int type)
Creates a new plate stack.
|
Stack(int rows,
int columns)
Creates a new empty plate stack.
|
Stack(int rows,
int columns,
String labelIn)
Creates a new plate stack using the label.
|
Stack(int type,
String labelIn)
Creates a new plate stack using the label.
|
Stack(Plate plateIn)
Creates a new plate stack using the input plate.
|
Stack(Plate[] platesIn)
Creates a new plate stack using the input plate array.
|
Stack(Plate[] platesIn,
String labelIn)
Creates a new plate stack using the input plate array and label.
|
Stack(Plate plateIn,
String labelIn)
Creates a new plate stack using the input plate and label.
|
Stack(Stack stack)
Creates a new plate stack from an existing plate stack.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Collection<Plate> platesIn)
Adds a collection of plates to the plate stack.
|
boolean |
add(Plate plateIn)
Adds a plate to the plate stack.
|
boolean |
add(Plate[] platesIn)
Adds an array of plates to the plate stack.
|
Plate |
ceiling(Plate plate)
Returns the least plate in this set greater than or equal to the given
plate, or null if there is no such plate.
|
void |
clear()
Clears the stack.
|
int |
columns()
Returns the column number.
|
boolean |
contains(Collection<Plate> platesIn)
Returns true if all the input plates are found within the stack.
|
boolean |
contains(List<String> labels)
Returns true if all the plates in the list exist in the stack.
|
boolean |
contains(Plate plateIn)
Returns true if the plate exists in the stack.
|
boolean |
contains(Plate[] platesIn)
Returns true if all the input plates are found within the stack.
|
boolean |
contains(String label)
Returns true if a plate with the label exists in the stack.
|
int |
dataType()
Returns the data type as an integer value.
|
String |
dataTypeString()
Returns the data type as a string.
|
Iterator<Plate> |
descendingIterator()
Returns an iterator over the plates in this set in descending order.
|
Set<Plate> |
descendingSet()
Returns a reverse order view of the plates contained in this set.
|
String |
descriptor()
Returns the descriptor.
|
boolean |
equals(Object object)
Plate stacks are equivalent if they contain the same plates.
|
Plate |
first()
Returns the first plate in the set.
|
Plate |
floor(Plate plate)
Returns the greatest plate in this set less than or equal to the given
plate, or null if there is no such plate.
|
Set<Plate> |
get(Collection<Plate> platesIn)
Returns the plates in the collection or null if none of the plates exist.
|
Set<Plate> |
get(List<String> labels)
Returns all the plates with a label found in the input list or null if none
of the plates exist.
|
Plate |
get(Plate plateIn)
Returns the plate or null if not such plate exists.
|
Set<Plate> |
get(Plate[] platesIn)
Returns plates in the array or null if none of the plates exist.
|
Plate |
get(String label)
Returns the plate with the input label or null if no such plate exists.
|
Set<Plate> |
getAll()
Returns all the plates in the stack as a set.
|
int |
hashCode()
Hash code using the rows, columns, data type, label and stack fields.
|
Set<Plate> |
headSet(Plate plate)
Returns a view of the portion of this set whose plates are strictly
less than the input plate.
|
Set<Plate> |
headSet(Plate plate,
boolean inclusive)
Returns a view of the portion of this set whose plates are less than
(or equal to, if inclusive is true) to the input plate.
|
Plate |
higher(Plate plate)
Returns the least plate in this set strictly greater than the given
plate, or null if there is no such plate.
|
boolean |
isEmpty()
Returns true if the plate is empty.
|
Iterator<Plate> |
iterator()
Returns an iterator that iterates over the plates in the stack.
|
String |
label()
Returns the label for the plate stack.
|
Plate |
last()
Returns the last plate in the set.
|
Plate |
lower(Plate plate)
Returns the greatest plate in this set strictly less than the given plate,
or null if there is no such plate.
|
Plate |
pollFirst()
Retrieves and removes the first (lowest) plate, or returns null if this
set is empty.
|
Plate |
pollLast()
Retrieves and removes the last (highest) plate, or returns null if this
set is empty.
|
boolean |
remove(Collection<Plate> platesIn)
Removes a collection of plates from the plate stack.
|
boolean |
remove(List<String> labels)
Removes all plates with a label found in the input list.
|
boolean |
remove(Plate plateIn)
Removes a plate from the plate stack.
|
boolean |
remove(Plate[] platesIn)
Removes an array of plates from the plate stack.
|
boolean |
remove(String label)
Removes the plate with the input label.
|
boolean |
replace(Collection<Plate> platesIn)
Replaces a collection of plates from the plate stack.
|
boolean |
replace(Plate plateIn)
Replaces a plate from the plate stack.
|
boolean |
replace(Plate[] platesIn)
Replaces an array of plates from the plate stack.
|
boolean |
retain(Collection<Plate> platesIn)
Retains a collection of plates from the plate stack.
|
boolean |
retain(List<String> labels)
Retains all plates with a label found in the input list.
|
boolean |
retain(Plate plateIn)
Retains a plate from the plate stack.
|
boolean |
retain(Plate[] platesIn)
Retains an array of plates from the plate stack.
|
boolean |
retain(String label)
Retains the plate with the input label.
|
int |
rows()
Returns the row number.
|
void |
setLabel(String label)
Sets the label for the plate stack.
|
int |
size()
Returns the number of plates in the stack.
|
Set<Plate> |
subSet(Plate plate1,
boolean inclusive1,
Plate plate2,
boolean inclusive2)
Returns a view of the portion of this set whose plates range from
the first input plate to the second input plate.
|
Set<Plate> |
subSet(Plate plate1,
Plate plate2)
Returns a view of the portion of this set whose plates range from
the first input plate inclusive to the second input plate inclusive.
|
Set<Plate> |
tailSet(Plate plate)
Returns a view of the portion of this stack whose plates are greater than
or equal to the input plate.
|
Set<Plate> |
tailSet(Plate plate,
boolean inclusive)
Returns a view of the portion of this stack whose plates are greater than
(or equal to, if inclusive is true) the input plate.
|
Plate[] |
toArray()
Returns an array of the plates in the stack.
|
String |
toString()
Returns the stack descriptor and label.
|
int |
type()
Returns the plate type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final int PLATE_6WELL
public static final int PLATE_12WELL
public static final int PLATE_24WELL
public static final int PLATE_48WELL
public static final int PLATE_96WELL
public static final int PLATE_384WELL
public static final int PLATE_1536WELL
public static final int PLATE_DOUBLE
public static final int PLATE_INTEGER
public static final int PLATE_BIGDECIMAL
public static final int PLATE_BIGINTEGER
public static final int ROWS_6WELL
public static final int ROWS_12WELL
public static final int ROWS_24WELL
public static final int ROWS_48WELL
public static final int ROWS_96WELL
public static final int ROWS_384WELL
public static final int ROWS_1536WELL
public static final int COLUMNS_6WELL
public static final int COLUMNS_12WELL
public static final int COLUMNS_24WELL
public static final int COLUMNS_48WELL
public static final int COLUMNS_96WELL
public static final int COLUMNS_384WELL
public static final int COLUMNS_1536WELL
public Stack(int type)
int - the plate typepublic Stack(int rows,
int columns)
int - number of rowsint - number of columnspublic Stack(int type,
String labelIn)
int - the plate typeString - the plate stack labelpublic Stack(int rows,
int columns,
String labelIn)
int - number of rowsint - number of columnsString - the plate stack labelpublic Stack(Plate plateIn)
Plate - the input platepublic Stack(Plate plateIn, String labelIn)
Plate - the input plateString - the plate stack labelpublic Stack(Collection<Plate> platesIn)
Collection - list of input platespublic Stack(Collection<Plate> platesIn, String labelIn)
Collection - list of input platespublic Stack(Plate[] platesIn)
PlateInteger[] - list of input platespublic Stack(Plate[] platesIn, String labelIn)
PlateInteger[] - list of input platespublic Stack(Stack stack)
Stack - the input stackpublic boolean add(Plate plateIn)
Plate - the input platepublic boolean add(Collection<Plate> platesIn)
Collection - the plate collectionpublic boolean add(Plate[] platesIn)
PlateInteger[] - the plate arraypublic boolean remove(Plate plateIn)
Plate - the input platepublic boolean remove(Collection<Plate> platesIn)
Collection - the plate collectionpublic boolean remove(Plate[] platesIn)
PlateInteger[] - the plate arraypublic boolean remove(String label)
String - the labelpublic boolean remove(List<String> labels)
List - the labelspublic void clear()
public boolean replace(Plate plateIn)
Plate - the input platepublic boolean replace(Collection<Plate> platesIn)
Collection - the plate collectionpublic boolean replace(Plate[] platesIn)
PlateInteger[] - the plate arraypublic boolean retain(Plate plateIn)
Plate - the input platepublic boolean retain(Collection<Plate> platesIn)
Collection - the plate collectionpublic boolean retain(Plate[] platesIn)
PlateInteger[] - the plate arraypublic boolean retain(String label)
String - the labelpublic boolean retain(List<String> labels)
List - the labelspublic Plate get(String label)
String - the labelpublic Set<Plate> get(List<String> labels)
List - the labelspublic Plate get(Plate plateIn)
Plate - the input platepublic Set<Plate> get(Collection<Plate> platesIn)
Collection - the input platespublic Set<Plate> get(Plate[] platesIn)
PlateInteger[] - the input platepublic Set<Plate> getAll()
public boolean contains(Plate plateIn)
Plate - the input platepublic boolean contains(Collection<Plate> platesIn)
Collection - the input platespublic boolean contains(Plate[] platesIn)
PlateInteger[] - the input platespublic boolean contains(String label)
String - the labelpublic boolean contains(List<String> labels)
List - the labelspublic int rows()
public int columns()
public int type()
public String descriptor()
public int dataType()
public String dataTypeString()
public void setLabel(String label)
String - the new labelpublic String label()
public String toString()
public int size()
public Plate[] toArray()
public Plate higher(Plate plate)
Plate - input platepublic Plate lower(Plate plate)
Plate - input platepublic Plate pollFirst()
public Plate pollLast()
public Iterator<Plate> iterator()
public Iterator<Plate> descendingIterator()
public Set<Plate> descendingSet()
public Plate first()
public Plate last()
public Plate ceiling(Plate plate)
Plate - the platepublic Plate floor(Plate plate)
public Set<Plate> headSet(Plate plate)
Plate - input platepublic Set<Plate> headSet(Plate plate, boolean inclusive)
Plate - plate input plateboolean - a true value retains the input plate in the sub setpublic Set<Plate> tailSet(Plate plate)
Plate - the input platepublic Set<Plate> tailSet(Plate plate, boolean inclusive)
Plate - the input platepublic Set<Plate> subSet(Plate plate1, boolean inclusive1, Plate plate2, boolean inclusive2)
Plate - the first input platePlate - the second input plateboolean - includes the first input plate in the returned setboolean - includes the second input plate in the returned setpublic Set<Plate> subSet(Plate plate1, Plate plate2)
Plate - the first input platePlate - the second input platepublic boolean isEmpty()
public boolean equals(Object object)
Copyright © 2017. All rights reserved.