public final class Row extends java.lang.Object implements java.lang.Iterable<RowEntry<?>>
Represents a single row of data in the table-like structure of the Rows.
Each row is an ordered collection of RowEntry instances of various type.
The main rule is that row cannot have two entries with the same ColumnKey.
Note: class doesn't override default hash-code and equals functionality! Row is immutable and unique "by instance" and may be compared by links.
| Constructor and Description |
|---|
Row(java.util.Collection<RowEntry<?>> entries) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RowEntry<?>> |
getEntries() |
<T> T |
getValue(ColumnKey<T> key) |
boolean |
isPresent(ColumnKey<?> key) |
java.util.Iterator<RowEntry<?>> |
iterator() |
java.lang.String |
toString() |
public final java.util.List<RowEntry<?>> entries
public boolean isPresent(ColumnKey<?> key)
public <T> T getValue(ColumnKey<T> key)
java.util.NoSuchElementException - if there's no RowEntry with the specified column key.isPresent(ColumnKey)public java.util.List<RowEntry<?>> getEntries()
public java.util.Iterator<RowEntry<?>> iterator()
iterator in interface java.lang.Iterable<RowEntry<?>>public java.lang.String toString()
toString in class java.lang.Object