Package org.cyclos.impl.utils
Interface BooleanPropertiesHolder<K>
-
- Type Parameters:
K- the type of the object containing the boolean properties
- All Known Implementing Classes:
BooleanPropertiesHolderImpl
public interface BooleanPropertiesHolder<K>Holds the relation between objects and correspondingBooleanProperties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsKey(K key)Returns whether the given key is contained in this holderSet<Map.Entry<K,BooleanProperties>>entries()Returns all entries of key andBooleanPropertiesBooleanPropertiesHolder<K>filter(K key, List<com.querydsl.core.types.Path<Boolean>> properties)Returns a new instance containing only the given required key.
If no property is given then all properties associated to the key will be included.BooleanPropertiesget(K key)Returns theBooleanPropertiesfor the given keyMap<K,BooleanProperties>getBooleansMap()Returns aMapcontaining all keys andBooleanPropertiesStringgetKeyPropertyName()Returns the property name to find the keybooleanisAnyKeySet(com.querydsl.core.types.Path<Boolean> property)Returns whether there is at least one key with the given property setbooleanisSet(K key, com.querydsl.core.types.Path<Boolean> property)Returns whether the given key has the corresponding property set or notSet<K>keys()Returns all keysSet<K>keysSet(com.querydsl.core.types.Path<Boolean> property)Returns all keys which have the corresponding property setSet<K>keysSet(Set<com.querydsl.core.types.Path<Boolean>> anyOfProperties)Returns all keys which have any of the corresponding properties setvoidremove(K key)Removes the given key, returning weather it was really removedCollection<BooleanProperties>values()Returns allBooleanProperties
-
-
-
Method Detail
-
containsKey
boolean containsKey(K key)
Returns whether the given key is contained in this holder
-
entries
Set<Map.Entry<K,BooleanProperties>> entries()
Returns all entries of key andBooleanProperties
-
filter
BooleanPropertiesHolder<K> filter(K key, List<com.querydsl.core.types.Path<Boolean>> properties)
Returns a new instance containing only the given required key.
If no property is given then all properties associated to the key will be included. Otherwise only the specified one.
-
get
BooleanProperties get(K key)
Returns theBooleanPropertiesfor the given key
-
getBooleansMap
Map<K,BooleanProperties> getBooleansMap()
Returns aMapcontaining all keys andBooleanProperties
-
getKeyPropertyName
String getKeyPropertyName()
Returns the property name to find the key
-
isAnyKeySet
boolean isAnyKeySet(com.querydsl.core.types.Path<Boolean> property)
Returns whether there is at least one key with the given property set
-
isSet
boolean isSet(K key, com.querydsl.core.types.Path<Boolean> property)
Returns whether the given key has the corresponding property set or not
-
keysSet
Set<K> keysSet(com.querydsl.core.types.Path<Boolean> property)
Returns all keys which have the corresponding property set
-
keysSet
Set<K> keysSet(Set<com.querydsl.core.types.Path<Boolean>> anyOfProperties)
Returns all keys which have any of the corresponding properties set
-
remove
void remove(K key)
Removes the given key, returning weather it was really removed
-
values
Collection<BooleanProperties> values()
Returns allBooleanProperties
-
-