| Package | Description |
|---|---|
| org.organicdesign.fp |
A data definition language, and other tools for writing functional Java.
|
| org.organicdesign.fp.collections |
Type-safe versions of the immutable Clojure collections, plus unmodifiable and immutable
collection interfaces that extend the java.util collections, deprecating the mutate-in-place
methods (Unmod____) and adding methods that return a new, immutable, modified version of the
collection (Im____).
|
| org.organicdesign.fp.tuple |
Immutable, type-safe, heterogeneous containers - ML calls these "records."
ML, Haskell, and Scala use tuples - why not Java?
Actually, tuples are *more* important in Java because Java does not have type aliases.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,U> Tuple2<T,U> |
StaticImports.tup(T t,
U u)
Returns a new Tuple2 of the given items.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KeyVal<K,V>
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Tuple2<A,B> |
Tuple2.of(A a,
B b)
Public static factory method
|
static <K,V> Tuple2<K,V> |
Tuple2.of(Map.Entry<K,V> entry)
Map.Entry factory method
|
Copyright © 2017. All rights reserved.