public static class PrimitiveArrayAdapter.Adapter
extends java.lang.Object
PrimitiveArrayAdapter
.Constructor and Description |
---|
PrimitiveArrayAdapter.Adapter() |
PrimitiveArrayAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
PrimitiveArrayAdapter ann) |
Modifier and Type | Method and Description |
---|---|
boolean[] |
adaptToBooleanArray(byte[] src)
Unpacks a boolean array from a byte array, big-endian fashion.
|
byte[] |
adaptToByteArray(boolean[] src)
Packs the given boolean array into a byte array, big-endian fashion.
|
byte[] |
adaptToByteArray(char[] src) |
byte[] |
adaptToByteArray(double[] src) |
byte[] |
adaptToByteArray(float[] src) |
byte[] |
adaptToByteArray(int[] src) |
byte[] |
adaptToByteArray(long[] src) |
byte[] |
adaptToByteArray(short[] src) |
char[] |
adaptToCharArray(byte[] src) |
double[] |
adaptToDoubleArray(byte[] src) |
float[] |
adaptToFloatArray(byte[] src) |
int[] |
adaptToIntArray(byte[] src) |
long[] |
adaptToLongArray(byte[] src) |
short[] |
adaptToShortArray(byte[] src) |
public PrimitiveArrayAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, PrimitiveArrayAdapter ann)
type
- type of object that contains the adapted propertypropertyName
- name of property with adapterann
- specific annotation that binds to this adapter classpublic PrimitiveArrayAdapter.Adapter()
public byte[] adaptToByteArray(short[] src)
public byte[] adaptToByteArray(char[] src)
public byte[] adaptToByteArray(int[] src)
public byte[] adaptToByteArray(long[] src)
public byte[] adaptToByteArray(float[] src)
public byte[] adaptToByteArray(double[] src)
public byte[] adaptToByteArray(boolean[] src)
public short[] adaptToShortArray(byte[] src)
public char[] adaptToCharArray(byte[] src)
public int[] adaptToIntArray(byte[] src)
public long[] adaptToLongArray(byte[] src)
public float[] adaptToFloatArray(byte[] src)
public double[] adaptToDoubleArray(byte[] src)
public boolean[] adaptToBooleanArray(byte[] src)
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.