From dfaae00d4999cf96a169d727f5fe167a606b6a46 Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 6 Mar 2020 19:24:35 -0600 Subject: [PATCH] finish up collection interface methods --- study/COLLECTIONS.MD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/study/COLLECTIONS.MD b/study/COLLECTIONS.MD index c5048cd..5b5e288 100644 --- a/study/COLLECTIONS.MD +++ b/study/COLLECTIONS.MD @@ -45,4 +45,8 @@ All datastructures referenced here can be imported using `import java.util. stream()** | It returns a sequential Stream with the collection as its source. | | **default Spliterator spliterator()** | It generates a Spliterator over the specified elements in the collection. | | **public boolean equals(Object element)** | It matches two collections. | -| **public int hashCode()** | It returns the hash code number of the collection. | \ No newline at end of file +| **public int hashCode()** | It returns the hash code number of the collection. | + +Since all classes discussed onward inherit the `Collections` interface, you can be sure that a valid, working implementation exists for every single one of these methods. + +However, the real power comes from the next set of interfaces, and the special methods devised by each class to manipulate these complex data structures. \ No newline at end of file