S
- The class of the StructuredArray modeled by the modelT
- The class of the elements in the StructuredArray modeled by the modelpublic class StructuredArrayModel<S extends StructuredArray<T>,T>
extends java.lang.Object
Constructor and Description |
---|
StructuredArrayModel(java.lang.Class<S> arrayClass,
java.lang.Class<T> elementClass,
long length)
Create a model of a StructuredArray instance with terminal (non StructuredArray) elements
|
StructuredArrayModel(java.lang.Class<S> arrayClass,
PrimitiveArrayModel<A2> subArrayModel,
long length)
Create a model of a StructuredArray instance with elements that are themselves subclassable PrimitiveArrays
|
StructuredArrayModel(java.lang.Class<S> arrayClass,
StructuredArrayModel<A2,T2> subArrayModel,
long length)
Create a model of a StructuredArray instance with elements that are themselves StructuredArrays
|
StructuredArrayModel(long length)
Create a model of a StructuredArray instance with terminal (non StructuredArray) elements,
deriving the array class and element class from the generic class parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Determine if this model is equal to another object.
|
java.lang.Class<S> |
getArrayClass()
Get the class of the StructuredArray modeled by this model
|
java.lang.Class<T> |
getElementClass()
Get the class of the elements in the StructuredArray modeled by the model
|
long |
getLength()
Get the length of the StructuredArray modeled by the model
|
org.ObjectLayout.AbstractPrimitiveArrayModel |
getPrimitiveSubArrayModel()
Get the model describing the structure of the elements of the array being modeled
|
org.ObjectLayout.AbstractStructuredArrayModel |
getStructuredSubArrayModel()
Get the model describing the structure of the elements of the array being modeled
|
public StructuredArrayModel(long length)
length
- The length of the StructuredArray modeled by the modelpublic StructuredArrayModel(java.lang.Class<S> arrayClass, java.lang.Class<T> elementClass, long length)
arrayClass
- The class of the StructuredArray modeled by the modelelementClass
- The class of the elements in the StructuredArray modeled by the modellength
- The length of the StructuredArray modeled by the modelpublic StructuredArrayModel(java.lang.Class<S> arrayClass, StructuredArrayModel<A2,T2> subArrayModel, long length)
A2
- The class of the StructuredArray modeled by the subArrayModelT2
- The class of the elements in the StructuredArray modeled by the subArrayModelarrayClass
- The class of the StructuredArray modeled by the modelsubArrayModel
- The model describing the structure of the elements of the array being modeledlength
- The length of the StructuredArray modeled by the modelpublic StructuredArrayModel(java.lang.Class<S> arrayClass, PrimitiveArrayModel<A2> subArrayModel, long length)
A2
- The class of the PrimitiveArray modeled by the subArrayModelarrayClass
- The class of the StructuredArray modeled by the modelsubArrayModel
- The model describing the structure of the elements of the array being modeledlength
- The length of the StructuredArray modeled by the modelpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other objectpublic final java.lang.Class<S> getArrayClass()
public final java.lang.Class<T> getElementClass()
public final org.ObjectLayout.AbstractStructuredArrayModel getStructuredSubArrayModel()
public final org.ObjectLayout.AbstractPrimitiveArrayModel getPrimitiveSubArrayModel()
public final long getLength()