V - value type@FunctionalInterface public static interface Try.Assignment<V>
FileInputStream fis = Try.assign(() -> new FileInputStream(fileString), IllegalArgumentException.class,
"File %s is not a valid file.", fileString);
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
V |
assign()
Returns a value which is obtained from the context in which the Assignment was created.
|
Copyright © 2014–2018 Delft University of Technology. All rights reserved.