Package org.rcsb.cif.model
Class StrColumn
- java.lang.Object
-
- org.rcsb.cif.model.BaseColumn
-
- org.rcsb.cif.model.StrColumn
-
- All Implemented Interfaces:
Column
public class StrColumn extends BaseColumn
Type-safe column which containsStringvalues as entries.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(int row)Retrieve theStringvalue at the given row index.String[]getBinaryData()For internal use.protected StringgetBinaryStringData(int row)Stream<String>values()Type-safeStreamof all elements.-
Methods inherited from class org.rcsb.cif.model.BaseColumn
getColumnName, getRowCount, getStringData, getValueKind, isDefined, valueKinds
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rcsb.cif.model.Column
stringData
-
-
-
-
Method Detail
-
get
public String get(int row)
Retrieve theStringvalue at the given row index.- Parameters:
row- the index to retrieve- Returns:
- the value - empty String if not present according to
BaseColumn.getValueKind(int)
-
values
public Stream<String> values()
Type-safeStreamof all elements.- Returns:
- a
StreamofStringvalues
-
getBinaryStringData
protected String getBinaryStringData(int row)
- Specified by:
getBinaryStringDatain classBaseColumn
-
getBinaryData
public String[] getBinaryData()
For internal use. Returns the decoded binary data which this column wraps. Returnsnullfor text columns.- Returns:
- the
String[]data
-
-