Package org.jf.util
Class ImmutableConverter<ImmutableItem,Item>
- java.lang.Object
-
- org.jf.util.ImmutableConverter<ImmutableItem,Item>
-
public abstract class ImmutableConverter<ImmutableItem,Item> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ImmutableConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
isImmutable
protected abstract boolean isImmutable(@Nonnull Item item)
-
makeImmutable
@Nonnull protected abstract ImmutableItem makeImmutable(@Nonnull Item item)
-
toList
@Nonnull public com.google.common.collect.ImmutableList<ImmutableItem> toList(@Nullable java.lang.Iterable<? extends Item> iterable)
-
toSet
@Nonnull public com.google.common.collect.ImmutableSet<ImmutableItem> toSet(@Nullable java.lang.Iterable<? extends Item> iterable)
-
toSortedSet
@Nonnull public com.google.common.collect.ImmutableSortedSet<ImmutableItem> toSortedSet(@Nonnull java.util.Comparator<? super ImmutableItem> comparator, @Nullable java.lang.Iterable<? extends Item> iterable)
-
toSortedSet
@Nonnull public java.util.SortedSet<ImmutableItem> toSortedSet(@Nonnull java.util.Comparator<? super ImmutableItem> comparator, @Nullable java.util.SortedSet<? extends Item> sortedSet)
-
-