Package org.cyclos.impl.utils
Class BooleanProperties
- java.lang.Object
-
- org.cyclos.impl.utils.BooleanProperties
-
- All Implemented Interfaces:
Serializable,Cloneable
public class BooleanProperties extends Object implements Serializable, Cloneable
Stores a set of boolean flags, indexed by properties- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BooleanProperties()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears all propertiesvoidclear(com.querydsl.core.types.Path<Boolean> path)Clears the given propertyvoidclear(Property<Boolean,?> property)Clears the given propertyBooleanPropertiesclone()static BooleanPropertiesempty()Returns an unmodifiable, empty instancevoidfill(Object object)Fills all properties which are currently set in the given beanstatic BooleanPropertiesfrom(Map<?,BooleanProperties> map, Object key)Returns aBooleanPropertiesinstance from the given map, using the given key.Set<String>getProperties()<T> Tinstantiate(Class<T> type)Creates a new instance of the given class, filling all properties which are currently setbooleanisSet(com.querydsl.core.types.Path<Boolean> path)Returns whether the given property is setbooleanisSet(Property<Boolean,?> property)Returns whether the given property is setvoidset(com.querydsl.core.types.Path<Boolean> path)Sets the given propertyvoidset(Property<Boolean,?> property)Sets the given propertyStringtoString()
-
-
-
Method Detail
-
empty
public static BooleanProperties empty()
Returns an unmodifiable, empty instance
-
from
public static BooleanProperties from(Map<?,BooleanProperties> map, Object key)
Returns aBooleanPropertiesinstance from the given map, using the given key. If such key is not found, or is null, returns an immutable,empty()instance
-
clear
public void clear()
Clears all properties
-
clear
public void clear(com.querydsl.core.types.Path<Boolean> path)
Clears the given property
-
clone
public BooleanProperties clone()
-
fill
public void fill(Object object)
Fills all properties which are currently set in the given bean
-
instantiate
public <T> T instantiate(Class<T> type)
Creates a new instance of the given class, filling all properties which are currently set
-
isSet
public boolean isSet(com.querydsl.core.types.Path<Boolean> path)
Returns whether the given property is set
-
isSet
public boolean isSet(Property<Boolean,?> property)
Returns whether the given property is set
-
set
public void set(com.querydsl.core.types.Path<Boolean> path)
Sets the given property
-
-