| Modifier and Type | Method and Description |
|---|---|
| public FixedSizeSet | tap(Procedure<? super T> procedure)
Redeclares org. Executes the Procedure for each element in the iterable and returns |
| public MutableSet | with(T element)
Redeclares org. Redeclares as abstract: org. This method allows fixed size collections the ability to add elements to their existing elements. |
| public MutableSet | withAll(Iterable<? extends T> elements)
Redeclares org. Redeclares as abstract: org. This method allows fixed size collections the ability to add multiple elements to their existing elements. |
| public MutableSet | without(T element)
Redeclares org. Redeclares as abstract: org. This method allows fixed size collections the ability to remove elements from their existing elements. |
| public MutableSet | withoutAll(Iterable<? extends T> elements)
Redeclares org. Redeclares as abstract: org. This method allows fixed size collections the ability to remove multiple elements from their existing elements. |
| tap | back to summary |
|---|---|
| public FixedSizeSet Redeclares org. Doc from org. Executes the Procedure for each element in the iterable and returns Example using a Java 8 lambda expression:
RichIterable<Person> tapped =
people.tap(person -> LOGGER.info(person.getName()));
| |
| with | back to summary |
|---|---|
| public MutableSet Redeclares org. Redeclares as abstract: org. Doc from org. This method allows fixed size collections the ability to add elements to their existing elements. A new instance
of
MutableCollection<String> list;
list = list.with("1");
list = list.with("2");
return list;
| |
| withAll | back to summary |
|---|---|
| public MutableSet Redeclares org. Redeclares as abstract: org. Doc from org. This method allows fixed size collections the ability to add multiple elements to their existing elements. A new
instance of
MutableCollection<String> list;
list = list.withAll(FastList.newListWith("1", "2"));
return list;
| |
| without | back to summary |
|---|---|
| public MutableSet Redeclares org. Redeclares as abstract: org. Doc from org. This method allows fixed size collections the ability to remove elements from their existing elements. A new
instance of
MutableCollection<String> list;
list = list.without("1");
list = list.without("2");
return list;
| |
| withoutAll | back to summary |
|---|---|
| public MutableSet Redeclares org. Redeclares as abstract: org. Doc from org. This method allows fixed size collections the ability to remove multiple elements from their existing elements.
A new instance of
MutableCollection<String> list;
list = list.withoutAll(FastList.newListWith("1", "2"));
return list;
| |