Package ghidra.util.map
Class ObjectStorageAdapter
java.lang.Object
ghidra.util.map.ObjectStorageAdapter
- All Implemented Interfaces:
ObjectStorage
Convenience adapter implementation for saving and restoring Strings and
Java primitives or arrays of Strings and primitives for a row of a data table.
The order in which the puts are done must the same order in which the gets are done.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectStorageAdapter(DataTable table, int row) Constructor for ObjectStorageAdapter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the boolean value.bytegetByte()Gets the byte value.byte[]getBytes()Gets the byte array.doubleGets the double value.double[]Gets the double array.floatgetFloat()Gets the float value.float[]Gets the float array.intgetInt()Gets the int value.int[]getInts()Gets the int array.longgetLong()Gets the long value.long[]getLongs()Gets the long array.shortgetShort()Gets the short value.short[]Gets the short array.Gets the String value.String[]Gets the array of StringsvoidputBoolean(boolean value) Store a boolean value.voidputByte(byte value) Store a byte value.voidputBytes(byte[] value) Store a byte array.voidputDouble(double value) Store a double value.voidputDoubles(double[] value) Store a double array value.voidputFloat(float value) Store a float value.voidputFloats(float[] value) Store a float array.voidputInt(int value) Store an integer value.voidputInts(int[] value) Store an integer array.voidputLong(long value) Store a long value.voidputLongs(long[] value) Store a long array.voidputShort(short value) Store a short value.voidputShorts(short[] value) Store a short array.voidStore a String value.voidputStrings(String[] value) Store a String[] value.
-
Constructor Details
-
ObjectStorageAdapter
Constructor for ObjectStorageAdapter.
-
-
Method Details
-
putInt
public void putInt(int value) Description copied from interface:ObjectStorageStore an integer value.- Specified by:
putIntin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
putByte
public void putByte(byte value) Description copied from interface:ObjectStorageStore a byte value.- Specified by:
putBytein interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
putShort
public void putShort(short value) Description copied from interface:ObjectStorageStore a short value.- Specified by:
putShortin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
putLong
public void putLong(long value) Description copied from interface:ObjectStorageStore a long value.- Specified by:
putLongin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
putString
Description copied from interface:ObjectStorageStore a String value.- Specified by:
putStringin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
putBoolean
public void putBoolean(boolean value) Description copied from interface:ObjectStorageStore a boolean value.- Specified by:
putBooleanin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
putFloat
public void putFloat(float value) Description copied from interface:ObjectStorageStore a float value.- Specified by:
putFloatin interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
putDouble
public void putDouble(double value) Description copied from interface:ObjectStorageStore a double value.- Specified by:
putDoublein interfaceObjectStorage- Parameters:
value- The value in the name,value pair.- See Also:
-
getInt
public int getInt()Description copied from interface:ObjectStorageGets the int value.- Specified by:
getIntin interfaceObjectStorage- See Also:
-
getByte
public byte getByte()Description copied from interface:ObjectStorageGets the byte value.- Specified by:
getBytein interfaceObjectStorage- See Also:
-
getShort
public short getShort()Description copied from interface:ObjectStorageGets the short value.- Specified by:
getShortin interfaceObjectStorage- See Also:
-
getLong
public long getLong()Description copied from interface:ObjectStorageGets the long value.- Specified by:
getLongin interfaceObjectStorage- See Also:
-
getBoolean
public boolean getBoolean()Description copied from interface:ObjectStorageGets the boolean value.- Specified by:
getBooleanin interfaceObjectStorage- See Also:
-
getString
Description copied from interface:ObjectStorageGets the String value.- Specified by:
getStringin interfaceObjectStorage- See Also:
-
getFloat
public float getFloat()Description copied from interface:ObjectStorageGets the float value.- Specified by:
getFloatin interfaceObjectStorage- See Also:
-
getDouble
public double getDouble()Description copied from interface:ObjectStorageGets the double value.- Specified by:
getDoublein interfaceObjectStorage- See Also:
-
putInts
public void putInts(int[] value) Description copied from interface:ObjectStorageStore an integer array.- Specified by:
putIntsin interfaceObjectStorage- See Also:
-
putBytes
public void putBytes(byte[] value) Description copied from interface:ObjectStorageStore a byte array.- Specified by:
putBytesin interfaceObjectStorage- See Also:
-
putShorts
public void putShorts(short[] value) Description copied from interface:ObjectStorageStore a short array.- Specified by:
putShortsin interfaceObjectStorage- See Also:
-
putLongs
public void putLongs(long[] value) Description copied from interface:ObjectStorageStore a long array.- Specified by:
putLongsin interfaceObjectStorage- See Also:
-
putFloats
public void putFloats(float[] value) Description copied from interface:ObjectStorageStore a float array.- Specified by:
putFloatsin interfaceObjectStorage- See Also:
-
putDoubles
public void putDoubles(double[] value) Description copied from interface:ObjectStorageStore a double array value.- Specified by:
putDoublesin interfaceObjectStorage- See Also:
-
getInts
public int[] getInts()Description copied from interface:ObjectStorageGets the int array.- Specified by:
getIntsin interfaceObjectStorage- See Also:
-
getBytes
public byte[] getBytes()Description copied from interface:ObjectStorageGets the byte array.- Specified by:
getBytesin interfaceObjectStorage- See Also:
-
getShorts
public short[] getShorts()Description copied from interface:ObjectStorageGets the short array.- Specified by:
getShortsin interfaceObjectStorage- See Also:
-
getLongs
public long[] getLongs()Description copied from interface:ObjectStorageGets the long array.- Specified by:
getLongsin interfaceObjectStorage- See Also:
-
getFloats
public float[] getFloats()Description copied from interface:ObjectStorageGets the float array.- Specified by:
getFloatsin interfaceObjectStorage- See Also:
-
getDoubles
public double[] getDoubles()Description copied from interface:ObjectStorageGets the double array.- Specified by:
getDoublesin interfaceObjectStorage- See Also:
-
getStrings
Description copied from interface:ObjectStorageGets the array of Strings- Specified by:
getStringsin interfaceObjectStorage- See Also:
-
putStrings
Description copied from interface:ObjectStorageStore a String[] value.- Specified by:
putStringsin interfaceObjectStorage- See Also:
-