public abstract class ImmutableConverter<ImmutableItem,Item>
extends java.lang.Object
| Constructor and Description |
|---|
ImmutableConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
isImmutable(Item item) |
protected abstract ImmutableItem |
makeImmutable(Item item) |
com.google.common.collect.ImmutableList<ImmutableItem> |
toList(java.lang.Iterable<? extends Item> iterable) |
com.google.common.collect.ImmutableSet<ImmutableItem> |
toSet(java.lang.Iterable<? extends Item> iterable) |
com.google.common.collect.ImmutableSortedSet<ImmutableItem> |
toSortedSet(java.util.Comparator<? super ImmutableItem> comparator,
java.lang.Iterable<? extends Item> iterable) |
java.util.SortedSet<ImmutableItem> |
toSortedSet(java.util.Comparator<? super ImmutableItem> comparator,
java.util.SortedSet<? extends Item> sortedSet) |
protected abstract boolean isImmutable(@Nonnull
Item item)
@Nonnull protected abstract ImmutableItem makeImmutable(@Nonnull Item item)
@Nonnull public com.google.common.collect.ImmutableList<ImmutableItem> toList(@Nullable java.lang.Iterable<? extends Item> iterable)
@Nonnull public com.google.common.collect.ImmutableSet<ImmutableItem> toSet(@Nullable java.lang.Iterable<? extends Item> iterable)
@Nonnull public com.google.common.collect.ImmutableSortedSet<ImmutableItem> toSortedSet(@Nonnull java.util.Comparator<? super ImmutableItem> comparator, @Nullable java.lang.Iterable<? extends Item> iterable)
@Nonnull public java.util.SortedSet<ImmutableItem> toSortedSet(@Nonnull java.util.Comparator<? super ImmutableItem> comparator, @Nullable java.util.SortedSet<? extends Item> sortedSet)