# Class: com.pnfsoftware.jeb.util.collect.Sets

Utility methods for [sets](Set).

## Constructor: Sets


## Static Method: createNonNulls
- parameter: `elts`, type: `T[]`
- return type: `java.util.HashSet<T>`

Description: Create and initialize a new [HashSet](HashSet) with the provided values. If a null value is provided, it will not be added to the set.
parameter: T: element type
parameter: elts: elements to add
return: a new hash set without null elements

## Static Method: getEntryByIndex
- parameter: `set`, type: `java.util.Set<T>`
- parameter: `index`, type: `int`
- return type: `T`

Description: Retrieve the value in a set **by index**. If the set is not a [SortedSet](SortedSet), the result may be different for each invocation.
parameter: T: element type
parameter: set: input set
parameter: index: zero\-based iteration index
return: the entry at the requested iteration index

## Static Method: newHashSet
- parameter: `elts`, type: `T[]`
- return type: `java.util.HashSet<T>`

Description: Create and initialize a new [HashSet](HashSet) with the provided values.
parameter: T: element type
parameter: elts: elements to add
return: a new hash set

