|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.filter.FilterValues<S>
public class FilterValues<S extends Storable>
Assigns values to Filter placeholders. FilterValues instances are
immutable.
| Method Summary | |
|---|---|
void |
appendTo(Appendable app)
Append the string representation of this object to the given Appendable. |
boolean |
equals(Object obj)
|
Object |
getAssignedValue(PropertyFilter<S> propFilter)
Returns the value assigned to the given PropertyFilter, throwing an exception if not assigned. |
int |
getBlankParameterCount()
Returns the amount of values yet to be assigned. |
Filter<S> |
getFilter()
Returns the Filter that this FilterValues instance applies to. |
Object[] |
getSuppliedValues()
Returns all supplied values in this object. |
Object[] |
getSuppliedValuesFor(Filter<S> filter)
Returns all supplied values in this object, as required by the given Filter. |
Object |
getValue(PropertyFilter<S> propFilter)
Returns the value assigned to the given PropertyFilter. |
Object[] |
getValues()
Returns all values in this object, including those provided by filter constants. |
Object[] |
getValuesFor(Filter<S> filter)
Returns all values in this object, as required by the given Filter. |
int |
hashCode()
|
boolean |
isAssigned(PropertyFilter<S> propFilter)
Returns true if a value is assigned to the given PropertyFilter. |
String |
toString()
Returns the string value of the filter with any values substituted. |
FilterValues<S> |
with(boolean value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(byte value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(char value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(double value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(float value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(int value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(long value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(Object value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
with(short value)
Returns a new FilterValues instance with the next blank parameter filled in. |
FilterValues<S> |
withValues(Object... values)
Returns a new FilterValues instance with the next blank parameters filled in. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Filter<S> getFilter()
public FilterValues<S> with(int value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(long value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(float value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(double value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(boolean value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(char value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(byte value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(short value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> with(Object value)
value - parameter value to fill in
IllegalStateException - if no blank parameters
IllegalArgumentException - if type doesn't matchpublic FilterValues<S> withValues(Object... values)
values - parameter values to fill in; if null or empty, this
FilterValues instance is returned
IllegalStateException - if no blank parameters or if too many
parameter values supplied
IllegalArgumentException - if type doesn't matchpublic int getBlankParameterCount()
public Object getValue(PropertyFilter<S> propFilter)
public Object getAssignedValue(PropertyFilter<S> propFilter)
throws IllegalStateException
IllegalStateException - if value is blankpublic boolean isAssigned(PropertyFilter<S> propFilter)
public Object[] getValues()
throws IllegalStateException
IllegalStateException - if any values are blankpublic Object[] getSuppliedValues()
public Object[] getValuesFor(Filter<S> filter)
throws IllegalStateException
filter - filter must be bound
IllegalStateException - if any values are blank
public Object[] getSuppliedValuesFor(Filter<S> filter)
throws IllegalStateException
filter - filter must be bound
IllegalStateExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
public void appendTo(Appendable app)
throws IOException
Appender
appendTo in interface Appenderapp - Appendable object to receive string representation
IOException - if thrown from given Appendable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||