public static class ShortVector.Factory extends AbstractNumberVector.Factory<ShortVector,Short>
Modifier and Type | Class and Description |
---|---|
static class |
ShortVector.Factory.Parameterizer
Parameterization class.
|
Constructor and Description |
---|
ShortVector.Factory() |
Modifier and Type | Method and Description |
---|---|
ByteBufferSerializer<ShortVector> |
getDefaultSerializer()
Get the default serializer for this type.
|
Class<? super ShortVector> |
getRestrictionClass()
Get the objects type restriction.
|
<A> ShortVector |
newFeatureVector(A array,
ArrayAdapter<Short,A> adapter)
Returns a new FeatureVector of V for the given values.
|
<A> ShortVector |
newNumberVector(A array,
NumberArrayAdapter<?,? super A> adapter)
Instantiate from any number-array like object.
|
newNumberVector
public <A> ShortVector newFeatureVector(A array, ArrayAdapter<Short,A> adapter)
FeatureVector.Factory
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic <A> ShortVector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.Factory
A
- Array typearray
- Arrayadapter
- Adapterpublic ByteBufferSerializer<ShortVector> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.public Class<? super ShortVector> getRestrictionClass()
FeatureVector.Factory