Package | Description |
---|---|
org.apache.archiva.common |
Provides archiva base exception and file type pattern.
|
Modifier and Type | Method and Description |
---|---|
static <V> Try<V> |
Try.failure(String message) |
static <V> Try<V> |
Try.failure(String message,
Throwable e) |
static <V> Try<V> |
Try.failure(Throwable e)
If you need type coercion, you should call this method as
Try.
|
<U> Try<U> |
Try.flatMap(Function<? super V,Try<U>> fn)
This is the bind method.
|
<U> Try<U> |
Try.map(Function<? super V,U> fn)
A mapping method for mapping the current instance to a new type.
|
static <V> Try<V> |
Try.success(V value)
Returns a instance for the success case.
|
Modifier and Type | Method and Description |
---|---|
<U> Try<U> |
Try.flatMap(Function<? super V,Try<U>> fn)
This is the bind method.
|
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.