Java com.google.common.collect ImmutableSet fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect ImmutableSet fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect ImmutableSet.

The text is from its open source code.

Method

Builderbuilder()
booleancontains(Object o)
Returns true if this set contains the specified element.
booleancontainsAll(Collection c)
Returns true if this set contains all of the elements of the specified collection.
ImmutableSetcopyOf(E[] elements)
ImmutableSetcopyOf(Collection elements)
ImmutableSetcopyOf(Iterable elements)
ImmutableSetcopyOf(Iterator elements)
booleanequals(Object obj)
voidforEach(Consumer action)
Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
inthashCode()
booleanisEmpty()
Returns true if this set contains no elements.
Iteratoriterator()
Returns an iterator over the elements in this set.
ImmutableSetof(E e1, E e2)
ImmutableSetof()
ImmutableSetof(E element)
ImmutableSetof(E e1, E e2, E e3, E e4)
ImmutableSetof(E e1, E e2, E e3)
ImmutableSetof(E e1, E e2, E e3, E e4, E e5, E e6, E... others)
ImmutableSetof(E e1, E e2, E e3, E e4, E e5)
Setof(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)
Returns an unmodifiable set containing nine elements.
Setof(E e1, E e2, E e3, E e4, E e5, E e6)
Returns an unmodifiable set containing six elements.
Setof(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
Returns an unmodifiable set containing eight elements.
Setof(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)
Returns an unmodifiable set containing ten elements.
intsize()
Returns the number of elements in this set (its cardinality).
Streamstream()
Returns a sequential Stream with this collection as its source.
T[]toArray(T[] a)
Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array.
StringtoString()
Returns a string representation of the object.