public class GroupValues extends Object implements Row<Comparable,String>
| Constructor and Description |
|---|
GroupValues(Comparable[] groupValues,
GroupHeader header) |
| Modifier and Type | Method and Description |
|---|---|
Comparable |
get(int index)
Returns the entity at a specified index
This method throws a
RuntimeException if anything goes wrong. |
<T> T |
get(int index,
Class<T> cl)
Returns the entity as a specified type
This method throws a
RuntimeException if anything goes wrong. |
Comparable |
get(String headerName)
Returns an entity from the column specified by its head name.
|
<T> T |
get(String headerName,
Class<T> cl)
Returns an entity using head name as a specified type.
|
Boolean |
getBoolean(int index)
Returns entity at an index as
Boolean
This method throws a RuntimeException if anything goes wrong. |
Boolean |
getBoolean(String name)
Returns entity from header name column as
Boolean
This method throws a RuntimeException if anything goes wrong. |
Byte |
getByte(int index)
Returns entity at an index as
Byte
This method throws a RuntimeException if anything goes wrong. |
Byte |
getByte(String headerName)
Returns entity from header name column as
Byte
This method throws a RuntimeException if anything goes wrong. |
Double |
getDouble(int index)
Returns entity at an index as
Double
This method throws a RuntimeException if anything goes wrong. |
Double |
getDouble(String name)
Returns entity from header name column as
Double
This method throws a RuntimeException if anything goes wrong. |
Float |
getFloat(int index)
Returns entity at an index as
Float
This method throws a RuntimeException if anything goes wrong. |
Float |
getFloat(String headerName)
Returns entity from header name column as
Float
This method throws a RuntimeException if anything goes wrong. |
Integer |
getInteger(int index)
Returns entity at an index as
Integer
This method throws a RuntimeException if anything goes wrong. |
Integer |
getInteger(String headerName) |
Long |
getLong(int index)
Returns entity at an index as
Long
This method throws a RuntimeException if anything goes wrong. |
Long |
getLong(String headerName)
Returns entity from header name column as
Long
This method throws a RuntimeException if anything goes wrong. |
<T> T |
getOrNull(int index,
Class<T> cl)
Returns the entity as a specified type
This method returns null if anything goes wrong.
|
<T> T |
getOrNull(String headerName,
Class<T> cl)
Returns an entity using head name as a specified type.
|
Short |
getShort(int index)
Returns entity at an index as
Short
This method throws a RuntimeException if anything goes wrong. |
Short |
getShort(String headerName)
Returns entity from header name column as
Short
This method throws a RuntimeException if anything goes wrong. |
String |
getString(int index)
Returns entity at an index as
String
This method throws a RuntimeException if anything goes wrong. |
String |
getString(String name)
Returns entity from header name column as
String
This method throws a RuntimeException if anything goes wrong. |
Comparable[] |
getValues()
Returns the group values as
Comparable array |
int |
size()
Returns the number of group values
|
public GroupValues(Comparable[] groupValues, GroupHeader header)
public Comparable[] getValues()
Comparable arraypublic Comparable get(String headerName)
RowRuntimeException if anything goes wrong.get in interface Row<Comparable,String>headerName - header name of the columnpublic Comparable get(int index)
RowRuntimeException if anything goes wrong.get in interface Row<Comparable,String>index - entity index in this rowpublic Double getDouble(int index)
RowDouble
This method throws a RuntimeException if anything goes wrong.getDouble in interface Row<Comparable,String>index - entity indexDouble entityRow.get(int)public String getString(int index)
RowString
This method throws a RuntimeException if anything goes wrong.getString in interface Row<Comparable,String>index - entity indexRow.get(int)public Boolean getBoolean(int index)
RowBoolean
This method throws a RuntimeException if anything goes wrong.getBoolean in interface Row<Comparable,String>index - entity indexBoolean entityRow.get(int)public Double getDouble(String name)
RowDouble
This method throws a RuntimeException if anything goes wrong.getDouble in interface Row<Comparable,String>name - header nameDouble entitypublic String getString(String name)
RowString
This method throws a RuntimeException if anything goes wrong.getString in interface Row<Comparable,String>name - header nameString entitypublic Boolean getBoolean(String name)
RowBoolean
This method throws a RuntimeException if anything goes wrong.getBoolean in interface Row<Comparable,String>name - header nameBoolean entitypublic Integer getInteger(int index)
RowInteger
This method throws a RuntimeException if anything goes wrong.getInteger in interface Row<Comparable,String>index - entity indexInteger entityRow.get(int)public Integer getInteger(String headerName)
getInteger in interface Row<Comparable,String>public Float getFloat(int index)
RowFloat
This method throws a RuntimeException if anything goes wrong.getFloat in interface Row<Comparable,String>index - entity indexFloat entityRow.get(int)public Float getFloat(String headerName)
RowFloat
This method throws a RuntimeException if anything goes wrong.getFloat in interface Row<Comparable,String>headerName - header nameFloat entitypublic <T> T get(String headerName, Class<T> cl)
RowRuntimeException if anything goes wrong.get in interface Row<Comparable,String>T - type of entityheaderName - header name of columncl - class of resulting entitypublic <T> T getOrNull(String headerName, Class<T> cl)
RowgetOrNull in interface Row<Comparable,String>T - type of entityheaderName - header name of columncl - class of resulting entitypublic <T> T get(int index,
Class<T> cl)
RowRuntimeException if anything goes wrong.get in interface Row<Comparable,String>T - type of entityindex - entity index in this rowcl - class of resulting entitypublic <T> T getOrNull(int index,
Class<T> cl)
RowgetOrNull in interface Row<Comparable,String>T - type of entityindex - entity index in this rowcl - class of resulting entitypublic Long getLong(int index)
RowLong
This method throws a RuntimeException if anything goes wrong.getLong in interface Row<Comparable,String>index - entity indexLong entityRow.get(int)public Long getLong(String headerName)
RowLong
This method throws a RuntimeException if anything goes wrong.getLong in interface Row<Comparable,String>headerName - header nameLong entitypublic Short getShort(int index)
RowShort
This method throws a RuntimeException if anything goes wrong.getShort in interface Row<Comparable,String>index - entity indexShort entityRow.get(int)public Short getShort(String headerName)
RowShort
This method throws a RuntimeException if anything goes wrong.getShort in interface Row<Comparable,String>headerName - header nameShort entitypublic Byte getByte(int index)
RowByte
This method throws a RuntimeException if anything goes wrong.getByte in interface Row<Comparable,String>index - entity indexByte entityRow.get(int)public Byte getByte(String headerName)
RowByte
This method throws a RuntimeException if anything goes wrong.getByte in interface Row<Comparable,String>headerName - header nameByte entitypublic int size()
size in interface Row<Comparable,String>Copyright © 2017. All rights reserved.