| Package | Description |
|---|---|
| gov.sandia.cognition.data.convert |
Provides utilities for doing data type conversion.
|
| gov.sandia.cognition.data.convert.number |
Provides utilities for doing data type conversion with numbers.
|
| gov.sandia.cognition.data.convert.vector |
Provides utilities for doing data type conversion with vectors.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractReverseCachedDataConverter<InputType,OutputType,ReverseConverterType extends DataConverter<? super OutputType,? extends InputType>>
Abstract implementation of
ReversibleDataConverter that caches the
reverse converter. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ReversibleDataConverter<InputType,OutputType>
Represents a
DataConverter whose conversion can be reversed. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDataConverter<InputType,OutputType>
Abstract implementation of
DataConverter interface. |
class |
AbstractReverseCachedDataConverter<InputType,OutputType,ReverseConverterType extends DataConverter<? super OutputType,? extends InputType>>
Abstract implementation of
ReversibleDataConverter that caches the
reverse converter. |
class |
AbstractReversibleDataConverter<InputType,OutputType>
Abstract implementation of sthe
ReversibleDataConverter interface. |
class |
IdentityDataConverter<DataType>
A pass-through converter that just returns the given value.
|
class |
ObjectToStringConverter
Converts an
Object to a String using the toString
method. |
| Modifier and Type | Field and Description |
|---|---|
protected ReverseConverterType |
AbstractReverseCachedDataConverter.reverse
A cached value of the reverse converter.
|
| Modifier and Type | Method and Description |
|---|---|
DataConverter<? super OutputType,? extends InputType> |
ReversibleDataConverter.reverse()
Gets the data converter that performs the reverse conversion.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultBooleanToNumberConverter
Converts a
Boolean to a Number by using predefined values
for true, false, and (optionally) null. |
class |
DefaultBooleanToNumberConverter.Reverse
The reverse converter for the
DefaultBooleanToNumberConverter. |
class |
StringToDoubleConverter
Converts a
String to a Double using the
Double.valueOf method. |
class |
StringToIntegerConverter
Converts a
String to a Integer using the
Integer.valueOf method. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DataToVectorEncoder<InputType>
Defines a converter that can be used to encode data into a
Vector. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractToVectorEncoder<InputType>
An abstract implementation of the
DataToVectorEncoder interface. |
class |
NumberConverterToVectorAdapter<InputType>
Adapts a
DataConverter that outputs a number to be a
VectorEncoder. |
class |
NumberToVectorEncoder
An encoder that encodes a number as an element of a
Vector. |
class |
UniqueBooleanVectorEncoder<InputType>
An encoder for arbitrary objects that encodes an equality comparison between
a given input and a set of unique values.
|
| Modifier and Type | Field and Description |
|---|---|
protected DataConverter<? super InputType,? extends Number> |
NumberConverterToVectorAdapter.converter
The converter to adapt for use with
Vectors. |
| Modifier and Type | Method and Description |
|---|---|
DataConverter<? super InputType,? extends Number> |
NumberConverterToVectorAdapter.getConverter()
Gets the number converter being adapted to work with vectors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NumberConverterToVectorAdapter.setConverter(DataConverter<? super InputType,? extends Number> converter)
Sets the number converter being adapted to work with vectors.
|
| Constructor and Description |
|---|
NumberConverterToVectorAdapter(DataConverter<? super InputType,? extends Number> converter)
Creates a new
NumberConverterToVectorAdapter for the given
converter. |
Copyright © 2006–2019 Sandia National Laboratories. All rights reserved.