public abstract class AbstractCriteriaLeaf<T> extends AbstractCriteria implements CriteriaLeaf<T>
CriteriaLeaf
functionality provided for
CriteriaLeaf
implementations.NameAccessor.NameBuilder<B extends NameAccessor.NameBuilder<B>>, NameAccessor.NameMutator, NameAccessor.NameProperty
KeyAccessor.KeyBuilder<K,B extends KeyAccessor.KeyBuilder<K,B>>, KeyAccessor.KeyMutator<K>, KeyAccessor.KeyProperty<K>
ValueAccessor.ValueBuilder<V,B extends ValueAccessor.ValueBuilder<V,B>>, ValueAccessor.ValueMutator<V>, ValueAccessor.ValueProperty<V>
Constructor and Description |
---|
AbstractCriteriaLeaf(String aName)
Constructs a
CriteriaLeaf with the given name. |
AbstractCriteriaLeaf(String aName,
String aKey,
T aValue)
Constructs a
CriteriaLeaf with the given name, key and value. |
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
T |
getValue() |
void |
setKey(String aKey) |
void |
setValue(T aValue) |
org.refcodes.collection.Relation<String,T> |
withKey(String aKey) |
org.refcodes.collection.Relation<String,T> |
withValue(T aValue) |
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public AbstractCriteriaLeaf(String aName)
CriteriaLeaf
with the given name.aName
- The name of the CriteriaLeaf
.public AbstractCriteriaLeaf(String aName, String aKey, T aValue)
CriteriaLeaf
with the given name, key and value.aName
- The name of the CriteriaLeaf
.aKey
- The key for the CriteriaLeaf
.aKey
- The value for the CriteriaLeaf
.public T getValue()
getValue
in interface ValueAccessor<T>
public String getKey()
getKey
in interface KeyAccessor<String>
public org.refcodes.collection.Relation<String,T> withValue(T aValue)
withValue
in interface ValueAccessor.ValueBuilder<T,org.refcodes.collection.Relation<String,T>>
public void setKey(String aKey)
setKey
in interface KeyAccessor.KeyMutator<String>
public org.refcodes.collection.Relation<String,T> withKey(String aKey)
withKey
in interface KeyAccessor.KeyBuilder<String,org.refcodes.collection.Relation<String,T>>
public void setValue(T aValue)
setValue
in interface ValueAccessor.ValueMutator<T>
Copyright © 2016. All rights reserved.