public final class Immutables
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
containsType(com.google.common.collect.ImmutableList<T> list,
java.lang.Class<? extends T> type)
Check that list contains particular subclass instance.
|
static <T> com.google.common.collect.ImmutableList<T> |
with(com.google.common.collect.ImmutableList<T> list,
T value,
boolean append) |
static <T> com.google.common.collect.ImmutableSet<T> |
with(com.google.common.collect.ImmutableSet<T> set,
T value) |
static <T> com.google.common.collect.ImmutableList<T> |
without(com.google.common.collect.ImmutableList<T> list,
T value) |
static <T> com.google.common.collect.ImmutableSet<T> |
without(com.google.common.collect.ImmutableSet<T> set,
T value) |
public static <T> com.google.common.collect.ImmutableSet<T> with(com.google.common.collect.ImmutableSet<T> set, T value)
public static <T> com.google.common.collect.ImmutableSet<T> without(com.google.common.collect.ImmutableSet<T> set, T value)
public static <T> com.google.common.collect.ImmutableList<T> with(com.google.common.collect.ImmutableList<T> list, T value, boolean append)
public static <T> com.google.common.collect.ImmutableList<T> without(com.google.common.collect.ImmutableList<T> list, T value)
public static <T> boolean containsType(com.google.common.collect.ImmutableList<T> list, java.lang.Class<? extends T> type)