public class Longs extends Object
Long
type.Constructor and Description |
---|
Longs() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Optional<Long> |
toLong(String value)
Parses the string argument as a
Long by delegating to Long.parseLong(String) , but returns an
Optional instead of throwing a NumberFormatException . |
@Nonnull public static com.google.common.base.Optional<Long> toLong(@Nullable String value)
Long
by delegating to Long.parseLong(String)
, but returns an
Optional
instead of throwing a NumberFormatException
.value
- a String
containing the Long
representation to be parsedOptional<Long>
, containing either the parsed Long
value or nothing if the value could
not be parsedCopyright © 2002-2015 Atlassian. All Rights Reserved.