Snippets tagged “factory-method”
2 snippets use this tag.
- A Java collection of value pairs? (tuples?)Java
In Java, you can use the AbstractMap.SimpleEntry class from the java.util package to represent a value pair (also known as a tuple).
- Examples of GoF Design Patterns in Java's core librariesJava
There are many examples of the GoF (Gang of Four) design patterns in the core libraries of Java. Here are some examples: