public class

Sets

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.collect.Sets

Class Overview

Utility methods for Set sets.

Summary

Public Constructors
Sets()
Public Methods
static <T> HashSet<T> createNonNulls(T... elts)
Create and initialize a new HashSet with the provided values.
static <T> T getEntryByIndex(Set<T> set, int index)
Retrieve the value in a set by index.
static <T> HashSet<T> newHashSet(T... elts)
Create and initialize a new HashSet with the provided values.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Sets ()

Public Methods

public static HashSet<T> createNonNulls (T... elts)

Create and initialize a new HashSet with the provided values. If a null value is provided, it will not be added to the set.

public static T getEntryByIndex (Set<T> set, int index)

Retrieve the value in a set by index. If the set is not a SortedSet, the result may be different for each invocation.

public static HashSet<T> newHashSet (T... elts)

Create and initialize a new HashSet with the provided values.