boolean |
add (mixed $element)
Adds the specified element in this set |
boolean |
addAll (array|object $t)
Adds all the elements in the specified object in this set |
boolean |
clear ()
Removes all the elements in this set |
boolean |
has (mixed $element)
Determines whether this set contains the specified element |
boolean |
hasAll (array|object $t)
Determines whether this set contains all the elements in the specified object |
boolean |
isEmpty ()
Determines whether this set contains no element |
boolean |
remove (mixed $element)
Removes the element from this set |
boolean |
removeAll (array|object $t)
Removes all the elements in the specified object from this set |
int |
size ()
Returns the number of elements in this set |
array |
toArray ()
Converts this set to an array |
Adds the specified element in this set
mixed $element
Element to be added
public boolean add (mixed $element)
Adds all the elements in the specified object in this set
array|object $t
Object containing the elements to be added
public boolean addAll (array|object $t)
Removes all the elements in this set
public boolean clear ()
Determines whether this set contains the specified element
mixed $element
Element to determine
public boolean has (mixed $element)
Determines whether this set contains all the elements in the specified object
array|object $t
Object containing the elements to determine
public boolean hasAll (array|object $t)
Determines whether this set contains no element
public boolean isEmpty ()
Removes the element from this set
mixed $element
Element to be removed
public boolean remove (mixed $element)
Removes all the elements in the specified object from this set
array|object $t
Object containing the elements to be removed
public boolean removeAll (array|object $t)
Returns the number of elements in this set
public int size ()
Converts this set to an array
public array toArray ()