public class FilterValues<S extends Storable> extends java.lang.Object implements java.io.Serializable, Appender
Filter
placeholders. FilterValues instances are
immutable.Modifier and Type | Method and Description |
---|---|
void |
appendTo(java.lang.Appendable app)
Append the string representation of this object to the given Appendable.
|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.Object[] |
getSuppliedValues()
Returns all supplied values in this object.
|
java.lang.Object[] |
getSuppliedValuesFor(Filter<S> filter)
Returns all supplied values in this object, as required by the given
Filter.
|
java.lang.Object |
getValue(PropertyFilter<S> propFilter)
Returns the value assigned to the given PropertyFilter.
|
java.lang.Object[] |
getValues()
Returns all values in this object, including those provided by filter
constants.
|
java.lang.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.
|
java.lang.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(java.lang.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(java.lang.Object... values)
Returns a new FilterValues instance with the next blank parameters filled in.
|
public Filter<S> getFilter()
public FilterValues<S> with(int value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(long value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(float value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(double value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(boolean value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(char value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(byte value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(short value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> with(java.lang.Object value)
value
- parameter value to fill injava.lang.IllegalStateException
- if no blank parametersjava.lang.IllegalArgumentException
- if type doesn't matchpublic FilterValues<S> withValues(java.lang.Object... values)
values
- parameter values to fill in; if null or empty, this
FilterValues instance is returnedjava.lang.IllegalStateException
- if no blank parameters or if too many
parameter values suppliedjava.lang.IllegalArgumentException
- if type doesn't matchpublic int getBlankParameterCount()
public java.lang.Object getValue(PropertyFilter<S> propFilter)
public java.lang.Object getAssignedValue(PropertyFilter<S> propFilter) throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if value is blankpublic boolean isAssigned(PropertyFilter<S> propFilter)
public java.lang.Object[] getValues() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if any values are blankpublic java.lang.Object[] getSuppliedValues()
public java.lang.Object[] getValuesFor(Filter<S> filter) throws java.lang.IllegalStateException
filter
- filter must be boundjava.lang.IllegalStateException
- if any values are blankpublic java.lang.Object[] getSuppliedValuesFor(Filter<S> filter) throws java.lang.IllegalStateException
filter
- filter must be boundjava.lang.IllegalStateException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void appendTo(java.lang.Appendable app) throws java.io.IOException
Appender
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.