import com.github.andrewoma.dexx.collection.*;
public class ImmutableCollectionExample {
public static void main(String[] args) {
Set<String> immutableSet = Sets.of("apple", "banana", "orange");
Set<String> newImmutableSet = immutableSet.add("grape");
}
}
import com.github.andrewoma.dexx.collection.*;
public class MutableCollectionExample {
public static void main(String[] args) {
MutableSet<String> mutableSet = HashSet.of("apple", "banana", "orange");
mutableSet.add("grape");
}
}
import com.github.andrewoma.dexx.collection.*;
public class LinkedDataStructureExample {
public static void main(String[] args) {
LinkedList<String> linkedList = LinkedList.of("apple", "banana", "orange");
linkedList.addFirst("grape");
}
}
import com.github.andrewoma.dexx.collection.cache.*;
public class ConfigurationExample {
public static void main(String[] args) {
MemoryCacheFactory.setCacheSize(1000);
}
}