Constructor and Description |
---|
PropertySet()
Creates a new PropertySet object.
|
PropertySet(Collection<String> properties)
Creates a new PropertySet object.
|
PropertySet(PropertySet properties)
Creates a new PropertySet object.
|
PropertySet(String... properties)
Creates a new PropertySet object.
|
Modifier and Type | Method and Description |
---|---|
PropertySet |
add(String property)
Adds a property to this set.
|
PropertySet |
addAll(Collection<String> properties)
Adds a set of properties to this set.
|
PropertySet |
addAll(Iterator<String> properties)
Adds a set of properties to this set.
|
PropertySet |
addAll(PropertySet propertySet)
Adds a set of properties to this set.
|
void |
clear()
Removes all properties this set.
|
boolean |
contains(String property)
Returns true if the given property is a member of this set.
|
int |
getCount(String property)
Returns the number of instances of the given property in this set.
|
Iterator<String> |
getUniqueProperties()
Returns an iterator that visits a single instance of each property in this set.
|
boolean |
isEmpty()
Returns true if this set has no members.
|
Iterator<String> |
iterator()
Returns an iterator that visits every instance of each property in this set.
|
PropertySet |
remove(String property)
Removes a property from this set.
|
PropertySet |
removeAll(Collection<String> properties)
Removes a set of properties from this set.
|
PropertySet |
removeAll(Iterator<String> properties)
Removes a set of properties from this set.
|
PropertySet |
removeAll(PropertySet properties)
Removes a set of properties from this set.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public PropertySet()
public PropertySet(String... properties)
public PropertySet(Collection<String> properties)
public PropertySet(PropertySet properties)
public PropertySet add(String property)
public PropertySet addAll(PropertySet propertySet)
public PropertySet addAll(Collection<String> properties)
public PropertySet addAll(Iterator<String> properties)
public PropertySet remove(String property)
public PropertySet removeAll(Collection<String> properties)
public PropertySet removeAll(PropertySet properties)
public PropertySet removeAll(Iterator<String> properties)
public void clear()
public boolean contains(String property)
public Iterator<String> iterator()
public Iterator<String> getUniqueProperties()
public int getCount(String property)
public boolean isEmpty()
Copyright © 2024 The Cornutum Project. All rights reserved.