|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oopitis.weather.WeatherPropertySet
public class WeatherPropertySet
A set of weather properties. An object of this class can be used in a query
to specify multiple weather properties of interest,
or in a report to fetch all properties in the set at once. A weather
property set must have at least one element. This class is backed by a
java.util.LinkedHashSet. That means the order of the properties
in the list returned by asList is the same as the order in which
those properties are added by a constructor.
WeatherService.query(GeoLocation, Queryable, Queryable[]),
WeatherService.query(GeoLocation, Queryable, Feature, Feature[]),
QueryHint.include(Queryable[]),
WeatherReport.get(WeatherPropertySet)| Constructor Summary | |
|---|---|
WeatherPropertySet(java.util.Collection<WeatherProperty> c)
Creates a weather property set from a collection of properties. |
|
WeatherPropertySet(WeatherPropertySet base,
WeatherProperty property,
WeatherProperty... properties)
Creates a weather property set based on another set. |
|
WeatherPropertySet(WeatherProperty property,
WeatherProperty... properties)
Creates a weather property set with a list of properties. |
|
| Method Summary | |
|---|---|
java.util.List<WeatherProperty> |
asList()
Returns this property set as a list. |
boolean |
contains(WeatherProperty p)
Returns true if this property set contains the specified property. |
WeatherProperty[] |
getQueryableProperties()
Returns all properties in this set as queryable. |
int |
size()
Returns the number of properties in this property set. |
java.lang.String |
toString()
Returns a string representation of this property set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeatherPropertySet(WeatherProperty property,
WeatherProperty... properties)
property - the first propertyproperties - the rest of the properties
java.lang.IllegalArgumentException - if all properties in the list are
nullpublic WeatherPropertySet(java.util.Collection<WeatherProperty> c)
c - the collection of properties
java.lang.NullPointerException - if the given collection is null
java.lang.IllegalArgumentException - if all elements in the collection
are null
public WeatherPropertySet(WeatherPropertySet base,
WeatherProperty property,
WeatherProperty... properties)
base - the basic setproperty - the first additional propertyproperties - other additional properties
java.lang.NullPointerException - if the base set or the first additional
property is null| Method Detail |
|---|
public java.util.List<WeatherProperty> asList()
public boolean contains(WeatherProperty p)
p - the property whose presence in this set is to be tested
true if this property set contains the specified
propertypublic int size()
public final WeatherProperty[] getQueryableProperties()
getQueryableProperties in interface Queryablepublic java.lang.String toString()
toString() of
java.util.LinkedHashSet.
toString in class java.lang.ObjectAbstractCollection.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||