Loading topic
java.util types (List, Set, Map, Deque) and the difference between ordered, sorted and unordered collections. It also assumes you can run code on a Java 21 or newer JDK. The sequenced interfaces come in the next chapters. Here we define the idea they 5 min readjava.util types (List, Set, Deque), the difference between ordered, sorted and unordered collections, and how interfaces with default methods work. You need a Java 21 or newer JDK to run the examples.5 min readreversed(), the method that returns a backwards view of a sequenced collection. It assumes you know List, Set, Deque and Map, and that you have read the earlier chapters on encounter order and SequencedCollection. You need Java 21 or newer to run the examples.4 min readSet implementations (HashSet, LinkedHashSet, TreeSet), the SequencedCollection methods from earlier chapters (getFirst, addLast, reversed()), and that you run Java 21 or newer.5 min readMap, HashMap, LinkedHashMap and TreeMap. It also assumes you have read the earlier chapters on encounter order, SequencedCollection and reversed views. You need a Java 21 or newer JDK to run the code.5 min readjava.util types (List, Set, Map, Deque), the difference between ordered, sorted and unordered collections, and how default methods work on interfaces. It also assumes JDK 21 or newer. Earlier chapters covered the first, last and reversed operations th6 min readgetFirst, addFirst, removeLast and the rest). It assumes you know the earlier chapters: SequencedCollection, SequencedSet and SequencedMap, plus the difference between ordered and sorted collections5 min readjava.util collections (List, Set, Map, Deque) and the difference between ordered, sorted and unordered collections. It also assumes you have met SequencedCollection, SequencedSet and SequencedMap from the earlier chapters, and that you run Java 6 min readMap, LinkedHashMap and TreeMap, and that you have read the earlier chapters on SequencedCollection, reversed views and SequencedMap. You need a Java 21 or newer JDK to run the examples.5 min readCollections.unmodifiableSequenced* factory methods. They hand out a read-only view of a collection and keep the first, last and reversed operations available. It assumes you know the following:6 min readjava.util collection types (List, Set, Map, Deque), the difference between ordered and sorted collections, and how interfaces with default methods work. It also assumes you have read the earlier chapters on SequencedCollection, reversed views and the exc6 min read