public class ObjectEditorDecoratorBase<KEY,ITEM> extends Object implements ObjectEditor<KEY,ITEM>
Constructor and Description |
---|
ObjectEditorDecoratorBase() |
ObjectEditorDecoratorBase(ObjectEditor oe) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ITEM item) |
void |
addAll(ITEM... items) |
void |
addAll(List<ITEM> items) |
void |
addAllAsync(Collection<ITEM> items) |
List<ITEM> |
all() |
void |
clear() |
boolean |
compareAndIncrement(KEY key,
String property,
byte compare) |
boolean |
compareAndIncrement(KEY key,
String property,
int compare) |
boolean |
compareAndIncrement(KEY key,
String property,
long compare) |
boolean |
compareAndIncrement(KEY key,
String property,
short compare) |
boolean |
compareAndUpdate(KEY key,
String property,
byte compare,
byte value) |
boolean |
compareAndUpdate(KEY key,
String property,
char compare,
char value) |
boolean |
compareAndUpdate(KEY key,
String property,
double compare,
double value) |
boolean |
compareAndUpdate(KEY key,
String property,
float compare,
float value) |
boolean |
compareAndUpdate(KEY key,
String property,
int compare,
int value) |
boolean |
compareAndUpdate(KEY key,
String property,
long compare,
long value) |
boolean |
compareAndUpdate(KEY key,
String property,
Object compare,
Object value) |
boolean |
compareAndUpdate(KEY key,
String property,
short compare,
short value) |
ObjectEditor<KEY,ITEM> |
delegate() |
boolean |
delete(ITEM item) |
ITEM |
get(KEY key) |
byte |
getByte(ITEM item,
String property) |
char |
getChar(ITEM item,
String property) |
double |
getDouble(ITEM item,
String property) |
float |
getFloat(ITEM item,
String property) |
int |
getInt(ITEM item,
String property) |
KEY |
getKey(ITEM item) |
long |
getLong(ITEM item,
String property) |
Object |
getObject(ITEM item,
String property) |
short |
getShort(ITEM item,
String property) |
<T> T |
getValue(ITEM item,
String property,
Class<T> type) |
void |
modify(ITEM item) |
void |
modify(ITEM item,
String property,
byte value) |
void |
modify(ITEM item,
String property,
char value) |
void |
modify(ITEM item,
String property,
double value) |
void |
modify(ITEM item,
String property,
float value) |
void |
modify(ITEM item,
String property,
int value) |
void |
modify(ITEM item,
String property,
long value) |
void |
modify(ITEM item,
String property,
Object value) |
void |
modify(ITEM item,
String property,
short value) |
void |
modify(ITEM item,
Update... values) |
void |
modifyAll(Collection<ITEM> items) |
void |
modifyAll(ITEM... items) |
void |
modifyByValue(ITEM item,
String property,
String value) |
void |
put(ITEM item) |
byte |
readByte(KEY key,
String property) |
char |
readChar(KEY key,
String property) |
double |
readDouble(KEY key,
String property) |
float |
readFloat(KEY key,
String property) |
int |
readInt(KEY key,
String property) |
long |
readLong(KEY key,
String property) |
byte |
readNestedByte(KEY key,
String... properties) |
char |
readNestedChar(KEY key,
String... properties) |
double |
readNestedDouble(KEY key,
String... properties) |
float |
readNestedFloat(KEY key,
String... properties) |
int |
readNestedInt(KEY key,
String... properties) |
long |
readNestedLong(KEY key,
String... properties) |
short |
readNestedShort(KEY key,
String... properties) |
Object |
readNestedValue(KEY key,
String... properties) |
Object |
readObject(KEY key,
String property) |
short |
readShort(KEY key,
String property) |
<T> T |
readValue(KEY key,
String property,
Class<T> type) |
void |
removeAll(ITEM... items) |
void |
removeAllAsync(Collection<ITEM> items) |
void |
removeByKey(KEY key) |
int |
size() |
Collection<ITEM> |
toCollection() |
void |
update(ITEM item) |
void |
update(KEY key,
String property,
byte value) |
void |
update(KEY key,
String property,
char value) |
void |
update(KEY key,
String property,
double value) |
void |
update(KEY key,
String property,
float value) |
void |
update(KEY key,
String property,
int value) |
void |
update(KEY key,
String property,
long value) |
void |
update(KEY key,
String property,
Object value) |
void |
update(KEY key,
String property,
short value) |
void |
update(KEY key,
Update... values) |
void |
updateByValue(KEY key,
String property,
String value) |
public ObjectEditorDecoratorBase()
public ObjectEditorDecoratorBase(ObjectEditor oe)
public ObjectEditor<KEY,ITEM> delegate()
public void put(ITEM item)
put
in interface ObjectEditor<KEY,ITEM>
public void removeByKey(KEY key)
removeByKey
in interface ObjectEditor<KEY,ITEM>
public void removeAll(ITEM... items)
removeAll
in interface ObjectEditor<KEY,ITEM>
public void removeAllAsync(Collection<ITEM> items)
removeAllAsync
in interface ObjectEditor<KEY,ITEM>
public void addAll(ITEM... items)
addAll
in interface ObjectEditor<KEY,ITEM>
public void addAllAsync(Collection<ITEM> items)
addAllAsync
in interface ObjectEditor<KEY,ITEM>
public void modifyAll(ITEM... items)
modifyAll
in interface ObjectEditor<KEY,ITEM>
public void modifyAll(Collection<ITEM> items)
modifyAll
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item)
modify
in interface ObjectEditor<KEY,ITEM>
public void update(ITEM item)
update
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, Object value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modifyByValue(ITEM item, String property, String value)
modifyByValue
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, int value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, long value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, char value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, short value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, byte value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, float value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, String property, double value)
modify
in interface ObjectEditor<KEY,ITEM>
public void modify(ITEM item, Update... values)
modify
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, Object value)
update
in interface ObjectEditor<KEY,ITEM>
public void updateByValue(KEY key, String property, String value)
updateByValue
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, int value)
update
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, long value)
update
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, char value)
update
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, short value)
update
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, byte value)
update
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, float value)
update
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, String property, double value)
update
in interface ObjectEditor<KEY,ITEM>
public void update(KEY key, Update... values)
update
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, Object compare, Object value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, int compare, int value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, long compare, long value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, char compare, char value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, short compare, short value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, byte compare, byte value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, float compare, float value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndUpdate(KEY key, String property, double compare, double value)
compareAndUpdate
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndIncrement(KEY key, String property, int compare)
compareAndIncrement
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndIncrement(KEY key, String property, long compare)
compareAndIncrement
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndIncrement(KEY key, String property, short compare)
compareAndIncrement
in interface ObjectEditor<KEY,ITEM>
public boolean compareAndIncrement(KEY key, String property, byte compare)
compareAndIncrement
in interface ObjectEditor<KEY,ITEM>
public void addAll(List<ITEM> items)
addAll
in interface ObjectEditor<KEY,ITEM>
public Object readNestedValue(KEY key, String... properties)
readNestedValue
in interface ObjectEditor<KEY,ITEM>
public int readNestedInt(KEY key, String... properties)
readNestedInt
in interface ObjectEditor<KEY,ITEM>
public short readNestedShort(KEY key, String... properties)
readNestedShort
in interface ObjectEditor<KEY,ITEM>
public char readNestedChar(KEY key, String... properties)
readNestedChar
in interface ObjectEditor<KEY,ITEM>
public byte readNestedByte(KEY key, String... properties)
readNestedByte
in interface ObjectEditor<KEY,ITEM>
public double readNestedDouble(KEY key, String... properties)
readNestedDouble
in interface ObjectEditor<KEY,ITEM>
public float readNestedFloat(KEY key, String... properties)
readNestedFloat
in interface ObjectEditor<KEY,ITEM>
public long readNestedLong(KEY key, String... properties)
readNestedLong
in interface ObjectEditor<KEY,ITEM>
public Object readObject(KEY key, String property)
readObject
in interface ObjectEditor<KEY,ITEM>
public <T> T readValue(KEY key, String property, Class<T> type)
readValue
in interface ObjectEditor<KEY,ITEM>
public int readInt(KEY key, String property)
readInt
in interface ObjectEditor<KEY,ITEM>
public long readLong(KEY key, String property)
readLong
in interface ObjectEditor<KEY,ITEM>
public char readChar(KEY key, String property)
readChar
in interface ObjectEditor<KEY,ITEM>
public short readShort(KEY key, String property)
readShort
in interface ObjectEditor<KEY,ITEM>
public byte readByte(KEY key, String property)
readByte
in interface ObjectEditor<KEY,ITEM>
public float readFloat(KEY key, String property)
readFloat
in interface ObjectEditor<KEY,ITEM>
public double readDouble(KEY key, String property)
readDouble
in interface ObjectEditor<KEY,ITEM>
public Object getObject(ITEM item, String property)
getObject
in interface ObjectEditor<KEY,ITEM>
public <T> T getValue(ITEM item, String property, Class<T> type)
getValue
in interface ObjectEditor<KEY,ITEM>
public int getInt(ITEM item, String property)
getInt
in interface ObjectEditor<KEY,ITEM>
public long getLong(ITEM item, String property)
getLong
in interface ObjectEditor<KEY,ITEM>
public char getChar(ITEM item, String property)
getChar
in interface ObjectEditor<KEY,ITEM>
public short getShort(ITEM item, String property)
getShort
in interface ObjectEditor<KEY,ITEM>
public byte getByte(ITEM item, String property)
getByte
in interface ObjectEditor<KEY,ITEM>
public float getFloat(ITEM item, String property)
getFloat
in interface ObjectEditor<KEY,ITEM>
public double getDouble(ITEM item, String property)
getDouble
in interface ObjectEditor<KEY,ITEM>
public Collection<ITEM> toCollection()
toCollection
in interface Bag<ITEM>
Copyright © 2014. All rights reserved.