java.lang.Object
io.quarkus.gizmo2.creator.ops.ObjectOps
io.quarkus.gizmo2.creator.ops.CollectionOps
Operations on
Collection.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate a call toCollection.add(Object).Generate a call toCollection.addAll(Collection).voidclear()Generate a call toCollection.clear().Generate a call toCollection.contains(Object).containsAll(Expr other) Generate a call toCollection.containsAll(Collection).isEmpty()Generate a call toCollection.isEmpty().iterator()Generate a call toCollection.iterator().Generate a call toCollection.remove(Object).Generate a call toCollection.removeAll(Collection).size()Generate a call toCollection.size().
-
Constructor Details
-
CollectionOps
Construct a new instance.- Parameters:
bc- the block creator (must not benull)obj- the collection instance (must not benull)
-
-
Method Details
-
size
Generate a call toCollection.size().- Returns:
- the expression of the result (not
null)
-
isEmpty
Generate a call toCollection.isEmpty().- Returns:
- the expression of the result (not
null)
-
add
Generate a call toCollection.add(Object).- Parameters:
item- the object to add (must not benull)- Returns:
- the expression of the result (not
null)
-
addAll
Generate a call toCollection.addAll(Collection).- Parameters:
other- the collection to add (must not benull)- Returns:
- the expression of the result (not
null)
-
clear
public void clear()Generate a call toCollection.clear(). -
contains
Generate a call toCollection.contains(Object).- Parameters:
item- the item to test for (must not benull)- Returns:
- the expression of the result (not
null)
-
containsAll
Generate a call toCollection.containsAll(Collection).- Parameters:
other- the other collection (must not benull)- Returns:
- the expression of the result (not
null)
-
iterator
Generate a call toCollection.iterator().- Returns:
- the expression of the result (not
null)
-
remove
Generate a call toCollection.remove(Object).- Parameters:
item- the object to remove (must not benull)- Returns:
- the expression of the result (not
null)
-
removeAll
Generate a call toCollection.removeAll(Collection).- Parameters:
other- the other collection (must not benull)- Returns:
- the expression of the result (not
null)
-