public class ConstantColumnData
extends uk.ac.starlink.table.ColumnData
equals
and hashCode
methods are implemented
so that instances with the same values are equal to each other.Modifier and Type | Field and Description |
---|---|
static ConstantColumnData |
NAN
Instance with values of Double.NaN.
|
static ConstantColumnData |
ONE
Instance with values of 1.
|
static ConstantColumnData |
ZERO
Instance with values of 0.
|
Constructor and Description |
---|
ConstantColumnData(java.lang.String name,
double value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.Object |
readValue(long irow) |
public static final ConstantColumnData ZERO
public static final ConstantColumnData ONE
public static final ConstantColumnData NAN
public ConstantColumnData(java.lang.String name, double value)
name
- column namevalue
- constant column valuepublic java.lang.Object readValue(long irow)
readValue
in class uk.ac.starlink.table.ColumnData
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright ? 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.