AlgART Home

net.algart.arrays
Interface PNumberArray

All Superinterfaces:
Array, PArray
All Known Subinterfaces:
ByteArray, DoubleArray, FloatArray, IntArray, LongArray, MutableByteArray, MutableDoubleArray, MutableFloatArray, MutableIntArray, MutableLongArray, MutablePFloatingArray, MutablePIntegerArray, MutablePNumberArray, MutableShortArray, PFloatingArray, PIntegerArray, ShortArray, UpdatableByteArray, UpdatableDoubleArray, UpdatableFloatArray, UpdatableIntArray, UpdatableLongArray, UpdatablePFloatingArray, UpdatablePIntegerArray, UpdatablePNumberArray, UpdatableShortArray
All Known Implementing Classes:
AbstractByteArray, AbstractDoubleArray, AbstractFloatArray, AbstractIntArray, AbstractLongArray, AbstractShortArray, AbstractUpdatableByteArray, AbstractUpdatableDoubleArray, AbstractUpdatableFloatArray, AbstractUpdatableIntArray, AbstractUpdatableLongArray, AbstractUpdatableShortArray

public interface PNumberArray
extends PArray

AlgART array of any primitive numeric elements (byte, short, int, long, float or double), read-only access.

Any class implementing this interface must implement one of ByteArray, ShortArray, IntArray, LongArray, FloatArray, DoubleArray subinterfaces.

AlgART Laboratory 2007-2013

Since:
JDK 1.5
Version:
1.2
Author:
Daniel Alievsky

Method Summary
Modifier and Type Method and Description
 java.lang.Class<? extends MutablePNumberArray> mutableType()
          Returns the canonical resizable AlgART type of arrays with the same element types: the class of one of 9 basic interfaces, describing all kinds of resizable AlgART arrays for 8 primitive and any non-primitive element types.
 java.lang.Class<? extends PNumberArray> type()
          Returns the canonical AlgART type of this array: the class of one of 9 basic interfaces, describing all kinds of AlgART arrays for 8 primitive and any non-primitive element types.
 java.lang.Class<? extends UpdatablePNumberArray> updatableType()
          Returns the canonical updatable AlgART type of arrays with the same element types: the class of one of 9 basic interfaces, describing all kinds of updatable AlgART arrays for 8 primitive and any non-primitive element types.
 
Methods inherited from interface net.algart.arrays.PArray
asImmutable, asTrustedImmutable, bitsPerElement, getDouble, indexOf, isZeroFilled, lastIndexOf, maxPossibleValue, minPossibleValue, mutableClone, updatableClone
 
Methods inherited from interface net.algart.arrays.Array
asCopyOnNextWrite, buffer, buffer, buffer, buffer, byteOrder, capacity, checkUnallowedMutation, elementType, equals, flushResources, flushResources, freeResources, freeResources, getData, getData, getElement, hashCode, isCopyOnNextWrite, isImmutable, isLazy, isNew, isNewReadOnlyView, isUnresizable, length, loadResources, newJavaArray, shallowClone, subArr, subArray, toString
 

Method Detail

type

java.lang.Class<? extends PNumberArray> type()
Description copied from interface: Array
Returns the canonical AlgART type of this array: the class of one of 9 basic interfaces, describing all kinds of AlgART arrays for 8 primitive and any non-primitive element types. More precisely, returns:

There is a guarantee that this method works very quickly (usually it just returns a constant value).

Specified by:
type in interface Array
Specified by:
type in interface PArray
Returns:
canonical AlgART type of this array.

updatableType

java.lang.Class<? extends UpdatablePNumberArray> updatableType()
Description copied from interface: Array
Returns the canonical updatable AlgART type of arrays with the same element types: the class of one of 9 basic interfaces, describing all kinds of updatable AlgART arrays for 8 primitive and any non-primitive element types. More precisely, returns:

There is a guarantee that this method works very quickly (usually it just returns a constant value).

Specified by:
updatableType in interface Array
Specified by:
updatableType in interface PArray
Returns:
canonical AlgART type of an updatable array of the same kind.

mutableType

java.lang.Class<? extends MutablePNumberArray> mutableType()
Description copied from interface: Array
Returns the canonical resizable AlgART type of arrays with the same element types: the class of one of 9 basic interfaces, describing all kinds of resizable AlgART arrays for 8 primitive and any non-primitive element types. More precisely, returns:

There is a guarantee that this method works very quickly (usually it just returns a constant value).

Specified by:
mutableType in interface Array
Specified by:
mutableType in interface PArray
Returns:
canonical AlgART type of a resizable array of the same kind.