|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.data.ValueProvider
public abstract class ValueProvider
Objects implementing this interface can provide values vased on an index. Useful for data sources (and their collections), buffers, etc.
Field Summary | |
---|---|
static int |
ByteProvider
Public constructor values for buffer type Default is buffer of Objects (unoptimized but generic) |
static int |
DoubleProvider
|
static int |
FloatProvider
|
static int |
IntegerProvider
|
protected int |
kind
|
static int |
LongProvider
|
static int |
ObjectProvider
|
static int |
ShortProvider
|
Constructor Summary | |
---|---|
ValueProvider()
|
Method Summary | |
---|---|
byte |
getByteValue(long index)
Optimized accessor for byte values. |
double |
getDoubleValue(long index)
Optimized accessor for double values. |
float |
getFloatValue(long index)
Optimized accessor for float values. |
int |
getIntegerValue(long index)
Optimized accessor for int values. |
int |
getKind()
The kind of this provider may be used fo optimization purpose. |
long |
getLongValue(long index)
Optimized accessor for long values. |
java.lang.Object |
getObjectValue(long index)
Naming compatibility function. |
short |
getShortValue(long index)
Optimized accessor for short values. |
abstract java.lang.Object |
getValue(long index)
|
java.lang.Class |
valueClass()
Returns the more specialized superclass of all objects returned by this provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ByteProvider
public static final int ShortProvider
public static final int IntegerProvider
public static final int LongProvider
public static final int FloatProvider
public static final int DoubleProvider
public static final int ObjectProvider
protected int kind
Constructor Detail |
---|
public ValueProvider()
Method Detail |
---|
public abstract java.lang.Object getValue(long index) throws DataException
DataException
public java.lang.Object getObjectValue(long index) throws DataException
DataException
public java.lang.Class valueClass()
public byte getByteValue(long index) throws DataException
DataException
public short getShortValue(long index) throws DataException
DataException
public int getIntegerValue(long index) throws DataException
DataException
public long getLongValue(long index) throws DataException
DataException
public float getFloatValue(long index) throws DataException
DataException
public double getDoubleValue(long index) throws DataException
DataException
public int getKind()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |