public class Well extends WellPrecursor<Integer> implements Iterable<Integer>
Row |
Column |
Input |
|---|---|---|
| Integer | Integer | Row = 1 Column = 2 |
| String | Integer | Row = "1" Column = 2 |
| String | Integer | Row = "A" Column = 2 |
| Integer | String | Row = 1 Column = "2" |
| String | String | Row = "A" Column = "2" |
| String | String | Row = "1" Column = "2" |
| String | String | "A2" Input must be [A-Za-z]+[0-9]+ |
BIGDECIMAL, BIGINTEGER, DOUBLE, INTEGER| Constructor and Description |
|---|
Well(int row,
int column)
Creates a new Well object from row and column integers.
|
Well(int row,
int column,
Collection<Integer> data)
Creates a new Well object using the numerical type flag, row number,
column number and data set.
|
Well(int row,
int column,
Integer[] data)
Creates a new Well object using the numerical type flag, row number,
column number and data set.
|
Well(int row,
String column)
Creates a new Well object using the numerical type flag, row number and
column string.
|
Well(int row,
String column,
Collection<Integer> data)
Creates a new Well object using the numerical type flag, row number and
column string.
|
Well(int row,
String column,
Integer[] data)
Creates a new Well object using the numerical type flag, row number and
column string.
|
Well(String wellID)
Creates a new Well object from a string holding the column and row values.
|
Well(String wellID,
Collection<Integer> data)
Creates a new Well object using the numerical type flag and a string
holding the column and row values.
|
Well(String row,
int column)
Creates a new Well object using the numerical type flag, row string and
column number.
|
Well(String row,
int column,
Collection<Integer> data)
Creates a new Well object using the numerical type flag, row string,
column number and data set.
|
Well(String wellID,
Integer[] data)
Creates a new Well object using the numerical type flag and a string
holding the column and row values.
|
Well(String row,
int column,
Integer[] data)
Creates a new Well object using the numerical type flag, row string,
column number and data set.
|
Well(String row,
String column)
Creates a new Well object using the numerical type flag, row and column
strings.
|
Well(String row,
String column,
Collection<Integer> data)
Creates a new Well object using the numerical type flag, row string,
column string and data set.
|
Well(String row,
String column,
Integer[] data)
Creates a new Well object using the numerical type flag, row and column
strings.
|
Well(Well well)
Clones a double well without invoking clone.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<Integer> collection)
Adds a collection of numbers to the data set.
|
void |
add(Integer datum)
Adds a single data point to a well.
|
void |
add(Integer[] array)
Adds an array of numbers to the data set.
|
void |
add(Well well)
Adds the data from another well.
|
void |
add(WellSet set)
Adds the data from each well in the well set.
|
void |
clear()
Clears the well data.
|
boolean |
contains(Integer number)
Returns true if the well data set contains the value.
|
List<Integer> |
data()
Returns the data set.
|
boolean |
equals(Object object)
Wells are equivalent if the row, column and ALPHA_BASE
fields are equivalent.
|
Integer |
get(int index)
Returns the value at the specified index.
|
int |
indexOf(Integer number)
Returns the index of the first occurrence of the specified element in
this list, or -1 if this list does not contain the element.
|
boolean |
isEmpty()
Returns true if the well data set is empty and false otherwise.
|
Iterator<Integer> |
iterator()
Returns an iterator for the well data set.
|
double |
lastIndexOf(Integer number)
Returns the index of the last occurrence of the specified element in this
list, or -1 if this list does not contain the element.
|
void |
remove(Collection<Integer> collection)
Removes all the values in the collection from the data set.
|
void |
remove(Integer number)
Removes the value from the data set.
|
void |
remove(Integer[] array)
Removes all the values in the array from the data set.
|
void |
removeRange(int begin,
int end)
Removes all values within the indices.
|
void |
removeSet(WellSet set)
Removes the well values for each well from the data set.
|
void |
removeWell(Well well)
Removes all the well values from the data set.
|
void |
replaceData(Collection<Integer> collection)
Clears the data set and adds the collection.
|
void |
replaceData(Integer datum)
Clears the data set and adds the number.
|
void |
replaceData(Integer[] array)
Clears the data set and adds the array.
|
void |
replaceData(Well well)
Clears the data set and adds the well data set.
|
void |
replaceData(WellSet set)
Clears the data set and adds the data from each well in the set.
|
void |
retain(Collection<Integer> collection)
Retains all the values in the collection.
|
void |
retain(Integer number)
Retains the values in the data set.
|
void |
retain(Integer[] array)
Retains all the values in the array.
|
void |
retainRange(int begin,
int end)
Retains all values within the indices.
|
void |
retainSet(WellSet set)
Retains all the values in each well.
|
void |
retainWell(Well well)
Retains all the values in the well.
|
int |
size()
Returns the size of the well data set.
|
Well |
subList(int begin,
int length)
Returns a new well containing the values within the indices.
|
List<BigDecimal> |
toBigDecimal()
Returns the well data set as a list of big decimals.
|
BigDecimal[] |
toBigDecimalArray()
Returns the well data set as a list of big decimals.
|
List<BigInteger> |
toBigInteger()
Returns the well data set as a list of big integers.
|
BigInteger[] |
toBigIntegerArray()
Returns the well data set as an array of big integers.
|
List<Byte> |
toByte()
Returns the well data set as a list of bytes.
|
byte[] |
toByteArray()
Returns the well data set as an array of bytes.
|
List<Double> |
toDouble()
Returns the well data set as a list of doubles.
|
double[] |
toDoubleArray()
Returns the well data set as an array of doubles.
|
List<Float> |
toFloat()
Returns the well data set as a list of floats.
|
float[] |
toFloatArray()
Returns the well data set as an array of floats.
|
List<Integer> |
toInt()
Returns the well data set as an array of shorts.
|
int[] |
toIntArray()
Returns the well data set as an array of integers.
|
List<Long> |
toLong()
Returns the well data set as a list of longs.
|
long[] |
toLongArray()
Returns the well data set as an array of longs.
|
List<Short> |
toShort()
Returns the well data set as a list of shorts.
|
short[] |
toShortArray()
Returns the well data set as an array of shorts.
|
alphaBase, column, compareTo, hashCode, index, row, rowString, toString, type, typeStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Well(int row,
int column)
int - the well rowint - the well columnpublic Well(int row,
int column,
Collection<Integer> data)
Collection - the data setint - the well rowint - the well columnpublic Well(int row,
int column,
Integer[] data)
Integer[] - the data setint - the well rowint - the well columnpublic Well(String row, int column)
String - the well rowint - the well columnpublic Well(String row, int column, Collection<Integer> data)
String - the well rowint - the well columnCollection - the data setpublic Well(String row, int column, Integer[] data)
String - the well rowint - the well columnInteger[] - the data setpublic Well(int row,
String column)
int - the well rowString - the well columnIllegalArgumentException - invalid column valuepublic Well(int row,
String column,
Collection<Integer> data)
int - the well rowString - the well columnCollection - the data setIllegalArgumentException - invalid column valuepublic Well(int row,
String column,
Integer[] data)
int - the well rowString - the well columnInteger[] - the data setIllegalArgumentException - invalid column valuepublic Well(String row, String column)
String - the well rowString - the well columnIllegalArgumentException - invalid column valuepublic Well(String row, String column, Collection<Integer> data)
String - the well rowString - the well columnCollection - the data setIllegalArgumentException - invalid column valuepublic Well(String row, String column, Integer[] data)
String - the well rowString - the well columnInteger[] - the data setIllegalArgumentException - invalid column valuepublic Well(String wellID)
String - the well indexpublic Well(String wellID, Collection<Integer> data)
String - the well indexCollection - the data setpublic Well(String wellID, Integer[] data)
String - the well indexInteger[] - the data setpublic Well(Well well)
WellPrecursor - the well to clonepublic List<Integer> data()
data in class WellPrecursor<Integer>public List<Double> toDouble()
public double[] toDoubleArray()
public List<Byte> toByte()
public byte[] toByteArray()
public List<Short> toShort()
public short[] toShortArray()
public List<Integer> toInt()
public int[] toIntArray()
public List<Long> toLong()
public long[] toLongArray()
public List<Float> toFloat()
public float[] toFloatArray()
public List<BigDecimal> toBigDecimal()
public BigDecimal[] toBigDecimalArray()
public List<BigInteger> toBigInteger()
public BigInteger[] toBigIntegerArray()
public void add(Integer datum)
Integer - the value to addpublic void add(Collection<Integer> collection)
Collection - the data to addpublic void add(Integer[] array)
Integer[] - the data to addpublic void add(Well well)
WellPrecursor - the well with data set to addpublic void add(WellSet set)
WellSet - the well set to addpublic void replaceData(Integer datum)
Integer - replacement datumpublic void replaceData(Collection<Integer> collection)
Collection - replacement datapublic void replaceData(Integer[] array)
Integer[] - replacement datapublic void replaceData(Well well)
WellPrecursor - well with replacement datapublic void replaceData(WellSet set)
WellSet - set of wells with replacement datapublic void remove(Integer number)
Integer - datum for removalpublic void remove(Collection<Integer> collection)
Collection - data for removalpublic void remove(Integer[] array)
Integer[] - data for removalpublic void removeWell(Well well)
WellPrecursor - well with data for removalpublic void removeSet(WellSet set)
WellSet - wells with replacement datapublic void removeRange(int begin,
int end)
int - beginning indexint - number of values to removepublic void retain(Integer number)
Integer - datum for retentionpublic void retain(Collection<Integer> collection)
Collection - data for retentionpublic void retain(Integer[] array)
Integer[] - data for retentionpublic void retainWell(Well well)
WellPrecursor - well with data for retentionpublic void retainSet(WellSet set)
WellSet - wells with retention datapublic void retainRange(int begin,
int end)
int - beginning indexint - number of values to removepublic int size()
public void clear()
public boolean isEmpty()
public Well subList(int begin, int length)
int - beginning indexint - number of values to removepublic boolean contains(Integer number)
Integer - the input valuepublic int indexOf(Integer number)
Integer - the input valuepublic Integer get(int index)
int - the indexpublic double lastIndexOf(Integer number)
int - the indexCopyright © 2017. All rights reserved.