Package | Description |
---|---|
javaslang | |
javaslang.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
default <V> Function1<T1,V> |
Function1.andThen(Function<? super R,? extends V> after)
Returns a composed function that first applies this Function1 to the given argument and then applies
Function
after to the result. |
default Function1<T2,R> |
Function2.apply(T1 t1)
Applies this function partially to one argument.
|
default Function1<T3,R> |
Function3.apply(T1 t1,
T2 t2)
Applies this function partially to two arguments.
|
default Function1<T4,R> |
Function4.apply(T1 t1,
T2 t2,
T3 t3)
Applies this function partially to three arguments.
|
default Function1<T5,R> |
Function5.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4)
Applies this function partially to 4 arguments.
|
default Function1<T6,R> |
Function6.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5)
Applies this function partially to 5 arguments.
|
default Function1<T7,R> |
Function7.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6)
Applies this function partially to 6 arguments.
|
default Function1<T8,R> |
Function8.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6,
T7 t7)
Applies this function partially to 7 arguments.
|
default <V> Function1<V,R> |
Function1.compose(Function<? super V,? extends T1> before)
Returns a composed function that first applies the Function
before the
given argument and then applies this Function1 to the result. |
static <T1,R> Function1<T1,R> |
Function1.constant(R value)
Returns a function that always returns the constant
value that you give in parameter.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,R>>>>>> |
Function6.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,R>>>>> |
Function5.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,R>>>> |
Function4.curried() |
default Function1<T1,Function1<T2,Function1<T3,R>>> |
Function3.curried() |
default Function1<T1,Function1<T2,R>> |
Function2.curried() |
default Function1<T1,R> |
Function1.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,CheckedFunction1<T6,R>>>>>> |
CheckedFunction6.curried() |
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,CheckedFunction1<T5,R>>>>> |
CheckedFunction5.curried() |
default Function1<T1,Function1<T2,Function1<T3,CheckedFunction1<T4,R>>>> |
CheckedFunction4.curried() |
default Function1<T1,Function1<T2,CheckedFunction1<T3,R>>> |
CheckedFunction3.curried() |
default Function1<T1,CheckedFunction1<T2,R>> |
CheckedFunction2.curried() |
static <T1,R> Function1<T1,R> |
API.Function1(Function1<T1,R> methodReference)
Alias for
of(Function1) |
static <T> Function1<T,T> |
Function1.identity()
Returns the identity Function1, i.e.
|
static <T1,R> Function1<T1,Option<R>> |
CheckedFunction1.lift(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Option result. |
static <T1,R> Function1<T1,Option<R>> |
Function1.lift(Function<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Option result. |
static <T1,R> Function1<T1,Try<R>> |
CheckedFunction1.liftTry(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Try result. |
static <T1,R> Function1<T1,Try<R>> |
Function1.liftTry(Function<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Try result. |
default Function1<T1,R> |
Function1.memoized() |
static <T1,R> Function1<T1,R> |
Function1.of(Function1<T1,R> methodReference)
|
default Function1<T1,R> |
CheckedFunction1.recover(Function<? super Throwable,? extends Function<? super T1,? extends R>> recover)
Return a composed function that first applies this CheckedFunction1 to the given arguments and in case of throwable
try to get value from
recover function with same arguments and throwable information. |
default Function1<T1,R> |
Function1.reversed() |
default Function1<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> |
Function8.tupled() |
default Function1<Tuple7<T1,T2,T3,T4,T5,T6,T7>,R> |
Function7.tupled() |
default Function1<Tuple6<T1,T2,T3,T4,T5,T6>,R> |
Function6.tupled() |
default Function1<Tuple5<T1,T2,T3,T4,T5>,R> |
Function5.tupled() |
default Function1<Tuple4<T1,T2,T3,T4>,R> |
Function4.tupled() |
default Function1<Tuple3<T1,T2,T3>,R> |
Function3.tupled() |
default Function1<Tuple2<T1,T2>,R> |
Function2.tupled() |
default Function1<Tuple1<T1>,R> |
Function1.tupled() |
default Function1<Tuple0,R> |
Function0.tupled() |
default Function1<T1,R> |
CheckedFunction1.unchecked()
Return unchecked function that will return this CheckedFunction1 result in correct case and throw exception
wrapped by
IllegalStateException in case of throwable. |
static <T1,R> Function1<T1,R> |
API.unchecked(CheckedFunction1<T1,R> f)
|
default Function1<T1,R> |
CheckedFunction1.unchecked(Function<? super Throwable,? extends RuntimeException> exceptionMapper)
Return unchecked function that will return this CheckedFunction1 result in correct case and throw runtime exception
wrapped by
exceptionMapper in case of throwable |
Modifier and Type | Method and Description |
---|---|
static <T1,R> Function1<T1,R> |
API.Function1(Function1<T1,R> methodReference)
Alias for
of(Function1) |
static <T1,R> Function1<T1,R> |
Function1.of(Function1<T1,R> methodReference)
|
Modifier and Type | Interface and Description |
---|---|
interface |
BitSet<T>
An immutable
BitSet implementation. |
interface |
IndexedSeq<T>
Interface for immutable, indexed sequences.
|
interface |
LinearSeq<T>
Interface for immutable, linear sequences.
|
interface |
List<T>
An immutable
List is an eager sequence of elements. |
interface |
Map<K,V>
An immutable
Map interface. |
interface |
Multimap<K,V>
An immutable
Multimap interface. |
interface |
Seq<T>
Interface for immutable sequential data structures.
|
interface |
Set<T>
An immutable
Set interface. |
interface |
SortedMap<K,V>
An immutable
SortedMap interface. |
interface |
SortedSet<T>
An immutable
SortedSet interface. |
interface |
Stream<T>
An immutable
Stream is lazy sequence of elements which may be infinitely long. |
Modifier and Type | Class and Description |
---|---|
class |
Array<T>
Array is a Traversable wrapper for
Object[] containing elements of type T . |
class |
CharSeq
The CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations
we know from the functional Javaslang collections.
|
class |
HashMap<K,V>
An immutable
HashMap implementation based on a
Hash array mapped trie (HAMT). |
class |
HashMultimap<K,V>
|
class |
HashSet<T>
An immutable
HashSet implementation. |
class |
LinkedHashMap<K,V>
An immutable
LinkedHashMap implementation. |
class |
LinkedHashMultimap<K,V>
An
LinkedHashMap -based implementation of Multimap |
class |
LinkedHashSet<T>
An immutable
HashSet implementation. |
static class |
List.Cons<T>
Non-empty
List , consisting of a head and a tail . |
static class |
List.Nil<T>
Representation of the singleton empty
List . |
class |
Queue<T>
An immutable
Queue stores elements allowing a first-in-first-out (FIFO) retrieval. |
static class |
Stream.Cons<T>
Non-empty
Stream , consisting of a head , and tail . |
static class |
Stream.Empty<T>
The empty Stream.
|
class |
TreeMap<K,V>
SortedMap implementation, backed by a Red/Black Tree.
|
class |
TreeMultimap<K,V>
|
class |
TreeSet<T>
SortedSet implementation, backed by a Red/Black Tree.
|
class |
Vector<T>
Vector is the default Seq implementation that provides effectively constant time access to any element.
|
Modifier and Type | Method and Description |
---|---|
default Function1<Integer,Option<T>> |
Seq.lift()
Turns this sequence into a plain function returning an Option result.
|
default Function1<K,Option<V>> |
Map.lift()
Turns this map into a plain function returning an Option result.
|
default Function1<Integer,T> |
Seq.withDefault(Function<? super Integer,? extends T> defaultFunction)
Turns this sequence from a partial function into a total function that
returns a value computed by defaultFunction for all indexes that are out of bounds.
|
default Function1<K,V> |
Map.withDefault(Function<? super K,? extends V> defaultFunction)
Turns this map from a partial function into a total function that
returns a value computed by defaultFunction for all keys
absent from the map.
|
default Function1<Integer,T> |
Seq.withDefaultValue(T defaultValue)
Turns this sequence from a partial function into a total function that
returns defaultValue for all indexes that are out of bounds.
|
default Function1<K,V> |
Map.withDefaultValue(V defaultValue)
Turns this map from a partial function into a total function that
returns defaultValue for all keys absent from the map.
|
Modifier and Type | Method and Description |
---|---|
static <T> BitSet.Builder<T> |
BitSet.withRelations(Function1<Integer,T> fromInt,
Function1<T,Integer> toInt) |
static <T> BitSet.Builder<T> |
BitSet.withRelations(Function1<Integer,T> fromInt,
Function1<T,Integer> toInt) |
Copyright © 2016. All Rights Reserved.