Constructor and Description |
---|
PropertyGetterList() |
Modifier and Type | Method and Description |
---|---|
PGL |
booleans(BooleanGetter<T>... getters) |
PGL |
bytes(ByteGetter<T>... getters) |
PGL |
chars(CharGetter<T>... getters) |
PGL |
doubles(DoubleGetter<T>... getters) |
PGL |
floats(FloatGetter<T>... getters) |
PGL |
ints(IntGetter<T>... getters) |
PGL |
longs(LongGetter<T>... getters) |
abstract java.lang.String |
nameAt(int index) |
PGL |
namedBoolean(java.lang.String name,
BooleanGetter<T> getter) |
PGL |
namedByte(java.lang.String name,
ByteGetter<T> getter) |
PGL |
namedChar(java.lang.String name,
CharGetter<T> getter) |
PGL |
namedDouble(java.lang.String name,
DoubleGetter<T> getter) |
PGL |
namedFloat(java.lang.String name,
FloatGetter<T> getter) |
PGL |
namedInt(java.lang.String name,
IntGetter<T> getter) |
PGL |
namedLong(java.lang.String name,
LongGetter<T> getter) |
PGL |
namedObject(java.lang.String name,
Getter<T> getter) |
PGL |
namedShort(java.lang.String name,
ShortGetter<T> getter) |
protected abstract PGL |
newInstance(PGL old,
java.lang.String name,
TypedProperty getter) |
PGL |
objects(Getter<T>... getters)
Use to specify properties of type object checked should be considered by this type.
|
abstract TypedProperty |
propertyAt(int index) |
PGL |
shorts(ShortGetter<T>... getters) |
abstract int |
size() |
protected abstract PGL newInstance(PGL old, java.lang.String name, TypedProperty getter)
public abstract int size()
public abstract java.lang.String nameAt(int index)
public abstract TypedProperty propertyAt(int index)
public PGL namedBoolean(java.lang.String name, BooleanGetter<T> getter)
public PGL namedByte(java.lang.String name, ByteGetter<T> getter)
public PGL namedShort(java.lang.String name, ShortGetter<T> getter)
name
- a property name for toString() generation; must not be nullgetter
- the value retrieverpublic PGL namedInt(java.lang.String name, IntGetter<T> getter)
name
- a property name for toString() generation; must not be nullgetter
- the value retrieverpublic PGL namedLong(java.lang.String name, LongGetter<T> getter)
name
- a property name for toString() generation; must not be nullgetter
- the value retrieverpublic PGL namedFloat(java.lang.String name, FloatGetter<T> getter)
name
- a property name for toString() generation; must not be nullgetter
- the value retrieverpublic PGL namedDouble(java.lang.String name, DoubleGetter<T> getter)
name
- a property name for toString() generation; must not be nullgetter
- the value retrieverpublic PGL namedChar(java.lang.String name, CharGetter<T> getter)
name
- a property name for toString() generation; must not be nullgetter
- the value retriever@SafeVarargs public final PGL objects(Getter<T>... getters)
Do not use this method for primitive properties - alternatives have been provided.
This method does not mutate the instance; it returns a new one.
getters
- a vararg array of non-null getters@SafeVarargs public final PGL booleans(BooleanGetter<T>... getters)
@SafeVarargs public final PGL chars(CharGetter<T>... getters)
@SafeVarargs public final PGL bytes(ByteGetter<T>... getters)
@SafeVarargs public final PGL shorts(ShortGetter<T>... getters)
@SafeVarargs public final PGL longs(LongGetter<T>... getters)
@SafeVarargs public final PGL floats(FloatGetter<T>... getters)
@SafeVarargs public final PGL doubles(DoubleGetter<T>... getters)