public class StrongReferenceSet extends Object
Utilities for manipulating media entities stored in a strong reference set. These static methods ensure a consistent approach to managing elements of a set through add, remove and contains operations.
| Modifier and Type | Method and Description |
|---|---|
static <T extends MediaEntity> |
add(Set<T> set,
T item) |
static <T extends MediaEntity> |
contains(Set<T> set,
T item) |
static <T extends MediaEntity> |
getOptionalSet(Set<T> set) |
static <T extends MediaEntity> |
getRequiredSet(Set<T> set) |
static <T extends MediaEntity> |
remove(Set<T> set,
T item) |
public static final <T extends MediaEntity> void add(Set<T> set, T item) throws NullPointerException
NullPointerExceptionpublic static final <T extends MediaEntity> boolean contains(Set<T> set, T item) throws NullPointerException
NullPointerExceptionpublic static final <T extends MediaEntity> boolean remove(Set<T> set, T item) throws NullPointerException
NullPointerExceptionpublic static final <T extends MediaEntity> Set<T> getOptionalSet(Set<T> set) throws PropertyNotPresentException
PropertyNotPresentExceptionpublic static final <T extends MediaEntity> Set<T> getRequiredSet(Set<T> set)
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.