Index
All Classes and Interfaces|All Packages
A
- age() - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Returns the value of the
agerecord component. - AppliedFunctionnalExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Applied functional examples that operate on collections using the Stream API.
- arrayDequeExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
ArrayDeque as a performant double-ended queue implementation.
- arrayListExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.list.ListExamples
-
ArrayList: access O(1) index, append amortized O(1), remove middle O(n).
- author() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Returns the value of the
authorrecord component.
B
- Book - Record Class in fr.univtln.bruno.samples.java101.tp3
-
Immutable value object representing a book used in TP3 sorting and grouping examples.
- Book(String, String, String, LocalDate, double) - Constructor for record class fr.univtln.bruno.samples.java101.tp3.Book
-
Creates an instance of a
Bookrecord class.
C
- choosingCollectionTypeExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Demonstrates choosing the right collection type.
- CollectionBestPractices - Class in fr.univtln.bruno.samples.java101.tp3.bestpractices
-
Demonstrates best practices for using collections in Java.
- CollectorsExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Collector-focused examples: grouping, partitioning, joining, summarizing and reduction.
- collectToLinkedHashSet(List<String>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.DedupExamples
-
Show collecting into a LinkedHashSet via stream then LinkedHashSet constructor.
- commonPitfallsExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Common pitfalls.
- comparatorChainingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Chaining comparators to implement multi-key sorting.
- ComparatorExamples - Class in fr.univtln.bruno.samples.java101.tp3.comparable
-
Examples illustrating Comparable/Comparator usage and common comparator idioms.
- ComparatorExamples() - Constructor for class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
- comparatorFactoryMethodsExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Show Comparator factory methods such as naturalOrder, reverseOrder, nullsFirst/Last.
- compareTo(Person) - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Natural ordering: by last name, then first name, then age.
- compareTo(Book) - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Natural ordering implemented in a functional style: compare by ISBN, then title, then author, then published date, then price.
- complexCollectorsBooksExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.CollectorsExamples
-
Demonstrates complex collectors (mapping + grouping) using Book examples.
- complexSortingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Complex sorting example combining multiple keys on Book objects.
- countingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
Counting and frequency aggregation examples using loops and merge.
- customComparatorExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Show simple comparators based on attributes.
- customComparatorImplementationExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Examples of custom comparator implementations (anonymous, lambda, method reference).
D
- DebuggingExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Small helpers showing how to debug stream pipelines: peek, sampling and safe terminal operations.
- DedupCollections - Class in fr.univtln.bruno.samples.java101.tp3.set
-
Collection-based deduplication examples: show how to remove duplicates while preserving insertion order using LinkedHashSet and why this is a collections solution (not a stream transform idiom).
- DedupExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Stream-based deduplication examples: utility class with static methods.
- dedupWithStreamDistinct(List<String>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.DedupExamples
-
Show deduplication using stream distinct().
- defensiveCopyingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Demonstrates defensive copying to protect internal state.
- Demo - Class in fr.univtln.bruno.samples.java101.tp3
-
Small demo runner that executes representative examples from TP3 (Collections invalid input: '&' Streams).
- distinctSortedLimitExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates distinct/sorted/limit/skip stream terminal operations.
E
- EclipseCollectionsExamples - Class in fr.univtln.bruno.samples.java101.tp3.eclipse
-
Minimal example showing usage of Eclipse Collections primitives (IntList).
- equals(Object) - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Indicates whether some other object is "equal to" this one.
F
- filterExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates filtering a collection using stream filters.
- firstName() - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Returns the value of the
firstNamerecord component. - flatMapExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates flatMap for nested collections and splitting strings.
- fr.univtln.bruno.samples.java101.tp3 - package fr.univtln.bruno.samples.java101.tp3
-
TP3 - Collections invalid input: '&' Streams Module overview ---------------- This module provides didactic examples and small demos covering Java collections (List, Set, Map, Queue, Deque), Comparator/Comparable patterns and the Streams API (creation, intermediate operations, collectors).
- fr.univtln.bruno.samples.java101.tp3.bestpractices - package fr.univtln.bruno.samples.java101.tp3.bestpractices
-
Best practices for collections usage: defensive copying, immutability, and common pitfalls.
- fr.univtln.bruno.samples.java101.tp3.comparable - package fr.univtln.bruno.samples.java101.tp3.comparable
-
Examples for Comparable and Comparator idioms and utilities.
- fr.univtln.bruno.samples.java101.tp3.eclipse - package fr.univtln.bruno.samples.java101.tp3.eclipse
-
Eclipse Collections examples (primitive collections, Bags, optimized iteration).
- fr.univtln.bruno.samples.java101.tp3.functional - package fr.univtln.bruno.samples.java101.tp3.functional
-
Functional programming examples (Streams) applied to Collections: stream creation, intermediate and terminal operations, collectors and parallel stream warnings.
- fr.univtln.bruno.samples.java101.tp3.guava - package fr.univtln.bruno.samples.java101.tp3.guava
-
Guava integration examples and notes (Multimap, Immutable collections, convenience utilities).
- fr.univtln.bruno.samples.java101.tp3.list - package fr.univtln.bruno.samples.java101.tp3.list
-
Examples about List implementations (ArrayList, LinkedList) and common list idioms.
- fr.univtln.bruno.samples.java101.tp3.map - package fr.univtln.bruno.samples.java101.tp3.map
-
Examples for Map implementations and modern Map APIs (compute, merge, etc.).
- fr.univtln.bruno.samples.java101.tp3.queue - package fr.univtln.bruno.samples.java101.tp3.queue
-
Examples for Queue and Deque usages (PriorityQueue, ArrayDeque, etc.).
- fr.univtln.bruno.samples.java101.tp3.set - package fr.univtln.bruno.samples.java101.tp3.set
-
Examples for Set implementations (HashSet, LinkedHashSet, TreeSet) and set operations.
G
- getDescription() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Return a short description of the book (title, author and price).
- getFullName() - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Return the human-friendly full name combining first and last name.
- groupingAndCountingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.CollectorsExamples
-
Demonstrates groupingBy and counting collectors on Person collections.
- GroupingDisplayExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Examples demonstrating groupingBy / partitioningBy and how to display grouped results.
- groupingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
Grouping example implemented manually with computeIfAbsent.
- GuavaExamples - Class in fr.univtln.bruno.samples.java101.tp3.guava
-
Small Guava Multimap example used for demonstration in TP3.
H
- hashCode() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Returns a hash code value for this object.
- hashCode() - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Returns a hash code value for this object.
- hashMapExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
Basic HashMap usage and update semantics.
- hashSetExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Demonstrates HashSet usage, including duplicate handling and iteration.
I
- immutabilityExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Immutability best practices.
- immutableListExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.list.ListExamples
-
Immutability vs unmodifiable view.
- immutableMapExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
Immutable map creation and views.
- immutableSetExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Demonstrates immutable Set creation and attempts to modify it.
- initializationExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Proper initialization examples.
- isbn() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Returns the value of the
isbnrecord component. - iterationExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Iteration best practices.
- iterationExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.list.ListExamples
-
Iteration: foreach, removeIf, ListIterator (bidirectional).
- iterationExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
Different ways to iterate a map's entries, keys and values.
L
- lastName() - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Returns the value of the
lastNamerecord component. - linkedHashMapExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
LinkedHashMap to preserve insertion order.
- linkedHashSetExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Demonstrates LinkedHashSet usage to maintain insertion order.
- linkedHashSetOrder(List<String>) - Static method in class fr.univtln.bruno.samples.java101.tp3.set.DedupCollections
-
Show LinkedHashSet insertion order behavior.
- linkedListExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.list.ListExamples
-
LinkedList: insert/remove head/tail O(1), index access O(n).
- ListExamples - Class in fr.univtln.bruno.samples.java101.tp3.list
-
Examples demonstrating common List implementations and idioms.
- listStreamsExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.AppliedFunctionnalExamples
-
Demonstrate mapping and collecting on a list of Person instances.
M
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Runner for collection best practices examples.
- main(String[]) - Static method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Small demo showing the Lombok-generated `with` methods on Book record components.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Runner for comparator examples.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.Demo
-
Demo runner for TP3 examples (logs output via SLF4J).
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.eclipse.EclipseCollectionsExamples
-
Simple demo for Eclipse Collections primitives.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.AppliedFunctionnalExamples
-
Runner for applied functional examples.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.ParallelStreamsExamples
-
Runner for parallel streams examples.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Simple runner for the Stream examples.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.guava.GuavaExamples
-
Small Guava Multimap example used for demonstration in TP3.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.list.ListExamples
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
Simple runner that executes Map examples.
- main(String[]) - Static method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Small demo for students showing the Lombok-generated `with` methods on record components.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
Runner for queue examples.
- main(String[]) - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Runner for set examples.
- mapExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates mapping operations on streams (map, method references).
- MapExamples - Class in fr.univtln.bruno.samples.java101.tp3.map
-
Examples demonstrating Map implementations and modern Map APIs (compute, merge, etc.).
- MappingAndSortingExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Combined mapping and sorting examples for stream pipelines applied to collections.
- mapStreamGroupingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.AppliedFunctionnalExamples
-
Demonstrate streaming over grouped values (e.g. after a grouping operation) to extract names.
- minMaxExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Min/Max examples using Comparators.
- modernMapMethodsExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
Modern Map methods: getOrDefault, putIfAbsent, computeIfAbsent, computeIfPresent, compute, merge.
N
- naturalOrderingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Demonstrate natural ordering via Comparable implementation.
- navigableSetExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Demonstrates NavigableSet features like navigation methods and descending view.
- nullHandlingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Null handling.
- nullHandlingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.comparable.ComparatorExamples
-
Null-handling comparators example.
O
- of(String, String, int) - Static method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Create a new
Personinstance after validating arguments. - of(String, String, String, LocalDate, double) - Static method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Create a validated Book instance.
P
- ParallelStreamsExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Examples demonstrating parallel streams usage and common pitfalls.
- ParallelStreamsExamples() - Constructor for class fr.univtln.bruno.samples.java101.tp3.functional.ParallelStreamsExamples
- parallelSumExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.ParallelStreamsExamples
-
Compare sequential vs parallel stream performance for a simple summation.
- peekExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates use of peek for debugging intermediate pipeline state.
- peekPipelineExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.DebuggingExamples
-
Demonstrate using peek() to inspect intermediate pipeline values.
- performanceExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.bestpractices.CollectionBestPractices
-
Performance considerations demo (small, indicative only).
- Person - Record Class in fr.univtln.bruno.samples.java101.tp3
-
Immutable value object representing a person used in TP3 collection examples.
- Person(String, String, int) - Constructor for record class fr.univtln.bruno.samples.java101.tp3.Person
-
Creates an instance of a
Personrecord class. - price() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Returns the value of the
pricerecord component. - printBookDescriptions(List<Book>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.MappingAndSortingExamples
-
Print book descriptions from the given list.
- printFullNames(List<Person>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.MappingAndSortingExamples
-
Print full names from the provided list of people.
- printNamesWithAges(List<Person>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.MappingAndSortingExamples
-
Print annotated names (name(age)) for each person.
- priorityQueueExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
PriorityQueue examples: natural and custom ordering.
- priorityQueueWithObjectsExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
PriorityQueue with complex objects using natural order or comparator.
- publishedDate() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Returns the value of the
publishedDaterecord component.
Q
- queueExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
Simple FIFO queue demonstration using LinkedList.
- QueueExamples - Class in fr.univtln.bruno.samples.java101.tp3.queue
-
Examples showing different Queue/Deque implementations and usage patterns.
R
- removeDuplicatesExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Demonstrates removal of duplicates from a collection using Set implementations.
- removeDuplicatesPreserveOrder(List<String>) - Static method in class fr.univtln.bruno.samples.java101.tp3.set.DedupCollections
-
Remove duplicates while preserving order using a LinkedHashSet (collection-based approach).
S
- safeFirstExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.DebuggingExamples
-
Demonstrate safe usage of findFirst with ifPresentOrElse.
- SetExamples - Class in fr.univtln.bruno.samples.java101.tp3.set
-
Examples demonstrating Set implementations and common set operations.
- setOperationsExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Demonstrates common set operations: union, intersection, difference, and symmetric difference.
- sharedMutablePitfall() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.ParallelStreamsExamples
-
Demonstrates the pitfall of mutating shared state (AtomicInteger used here still risks producing confusing results and should be avoided).
- showBookSortExamples(List<Book>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.MappingAndSortingExamples
-
Demonstrate different sorting strategies for books.
- showGroupingByLastName(List<Person>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.GroupingDisplayExamples
-
Display grouping by last name.
- showMinMaxByAge(List<Person>) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.MappingAndSortingExamples
-
Show the youngest and oldest person by age.
- showPartitionByAge(List<Person>, int) - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.GroupingDisplayExamples
-
Display partitioning of persons by age threshold.
- slidingWindowExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
Sliding window example implemented with ArrayDeque.
- sortingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates different sorting idioms using streams and comparators.
- sortingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.list.ListExamples
-
Sorting with Comparable then Comparator.
- stackExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
Using Deque as a stack replacement (avoid legacy Stack).
- StreamBasicsExamples - Class in fr.univtln.bruno.samples.java101.tp3.functional
-
Basic Stream API examples focused on collections: creation, intermediate operations and common idioms.
- streamCreationExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates various ways to create streams from collections and primitives.
- subListExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.list.ListExamples
-
SubList: a view backed by the original list.
T
- takeWhileDropWhileExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.StreamBasicsExamples
-
Demonstrates takeWhile and dropWhile on ordered streams.
- taskSchedulingExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.queue.QueueExamples
-
Simple task scheduling example using a priority queue.
- terminalOperationsExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.functional.CollectorsExamples
-
Showcases terminal stream operations like count/any/all/none/findFirst.
- title() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Returns the value of the
titlerecord component. - toString() - Method in record class fr.univtln.bruno.samples.java101.tp3.Book
-
Returns a string representation of this record class.
- toString() - Method in record class fr.univtln.bruno.samples.java101.tp3.Person
-
Returns a string representation of this record class.
- treeMapExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.map.MapExamples
-
TreeMap (sorted map) demonstration.
- treeSetExample() - Static method in class fr.univtln.bruno.samples.java101.tp3.set.SetExamples
-
Demonstrates TreeSet usage for sorting elements, both natural and by custom comparator.
All Classes and Interfaces|All Packages