public final class IntSet
extends java.lang.Object
Set
for storing Oid
values.
Note: the set does not support nullable values.Constructor and Description |
---|
IntSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int value)
Adds a single value to the set.
|
void |
addAll(java.util.Collection<? extends java.lang.Integer> values)
Adds all the values to the set.
|
void |
clear()
Clears the contents of the set.
|
boolean |
contains(int value)
Checks if a given value belongs to the set.
|
boolean |
remove(int value)
Removes a value from the set.
|
java.util.Set<java.lang.Integer> |
toMutableSet()
Returns a mutable snapshot of the values stored in the current set.
|
public void clear()
public void addAll(java.util.Collection<? extends java.lang.Integer> values)
values
- set of values to addpublic boolean add(int value)
value
- value to addpublic boolean remove(int value)
value
- value to removepublic boolean contains(int value)
value
- value to checkpublic java.util.Set<java.lang.Integer> toMutableSet()
Copyright © 2025 PostgreSQL Global Development Group. All rights reserved.