Package org.jparsec.functors
Class Maps
java.lang.Object
org.jparsec.functors.Maps
Provides common implementations of
Map
interface and the variants.-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.static UnaryOperator
<String> static UnaryOperator
<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <F,
T> Function <F, T> constant
(T v) Deprecated.Usefrom -> to
directly.static <T> UnaryOperator
<T> identity()
Deprecated.UseFunction.identity()
instead.static <K,
V> Function <K, V> Deprecated.UseMap::get
instead.Deprecated.UseString::valueOf
directly.Returns aMap
that maps the string representation of an enum to the corresponding enum value by callingEnum.valueOf(Class, String)
.static UnaryOperator
<String> toLowerCase
(Locale locale) toPair()
toTuple3()
Deprecated.toTuple4()
Deprecated.toTuple5()
Deprecated.static UnaryOperator
<String> toUpperCase
(Locale locale)
-
Field Details
-
TO_INTEGER
Deprecated.UseInteger::valueOf
directly. -
TO_LOWER_CASE
-
TO_UPPER_CASE
-
-
Constructor Details
-
Maps
private Maps()
-
-
Method Details
-
toLowerCase
-
toUpperCase
-
mapToString
Deprecated.UseString::valueOf
directly. -
toEnum
Returns aMap
that maps the string representation of an enum to the corresponding enum value by callingEnum.valueOf(Class, String)
. -
identity
Deprecated.UseFunction.identity()
instead.Returns an identity map that maps parameter to itself. -
constant
Deprecated.Usefrom -> to
directly.Returns aMap
that always maps any object tov
. -
map
Deprecated.UseMap::get
instead. -
toPair
-
toTuple3
Deprecated. -
toTuple4
Deprecated. -
toTuple5
Deprecated.
-
Integer::valueOf
directly.