woolpack.convert
クラス ConvertUtils
java.lang.Object
woolpack.convert.ConvertUtils
public final class ConvertUtils
- extends java.lang.Object
ユーティリティです。
型推論で表記を簡略するためのスタティックメソッドと変数を含みます。
- 作成者:
- nakamura
メソッドの概要 |
static RegExpConverter<java.lang.RuntimeException> |
convertRegExp(java.util.regex.Pattern pattern,
java.lang.String replacement)
|
static
|
format(Fn<?,? extends java.text.Format,? extends E> formatFactory)
|
static CloneFormatFactory<java.lang.RuntimeException> |
formatFactory(java.text.Format format)
|
static
|
keySet()
|
static NetMaskConverter<java.lang.RuntimeException> |
netMask(java.lang.String netMask)
|
static ParseConverter |
parse(Fn<?,? extends java.text.Format,? extends java.lang.Exception> formatFactory)
|
static RetainKeys<java.lang.RuntimeException> |
retainKeys(java.util.Collection<?> collection)
|
static
<C,R> TrysFn<C,R,java.lang.IllegalStateException> |
|
trys(java.lang.Iterable<? extends Fn<? super C,? extends R,? extends java.lang.Exception>> iterable)
|
static
<C,R,E extends java.lang.Exception>
TrysFn<C,R,E> |
|
trys(java.lang.Iterable<? extends Fn<? super C,? extends R,? extends java.lang.Exception>> iterable,
Fn<? super java.lang.Exception,?,? extends E> errorFn,
Fn<? super java.lang.Exception,? extends R,? extends E> finalFn)
|
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TO_BIG_DECIMAL
public static final ToBigDecimalConverter<java.lang.RuntimeException> TO_BIG_DECIMAL
TO_BIG_INTEGER
public static final ToBigIntegerConverter<java.lang.RuntimeException> TO_BIG_INTEGER
TO_BYTE
public static final ToByteConverter<java.lang.RuntimeException> TO_BYTE
TO_DOUBLE
public static final ToDoubleConverter<java.lang.RuntimeException> TO_DOUBLE
TO_FLOAT
public static final ToFloatConverter<java.lang.RuntimeException> TO_FLOAT
TO_INTEGER
public static final ToIntegerConverter<java.lang.RuntimeException> TO_INTEGER
TO_LONG
public static final ToLongConverter<java.lang.RuntimeException> TO_LONG
TO_SHORT
public static final ToShortConverter<java.lang.RuntimeException> TO_SHORT
TO_SQL_DATE
public static final ToSqlDateConverter<java.lang.RuntimeException> TO_SQL_DATE
TO_TIME
public static final ToTimeConverter<java.lang.RuntimeException> TO_TIME
TO_TIMESTAMP
public static final ToTimestampConverter<java.lang.RuntimeException> TO_TIMESTAMP
TO_CALENDAR
public static final ToCalendarConverter<java.lang.RuntimeException> TO_CALENDAR
TO_STRING
public static final ToStringConverter<java.lang.RuntimeException> TO_STRING
keySet
public static <K> KeySetGetter<K,java.lang.RuntimeException> keySet()
formatFactory
public static CloneFormatFactory<java.lang.RuntimeException> formatFactory(java.text.Format format)
format
public static <E extends java.lang.Exception> FormatConverter<E> format(Fn<?,? extends java.text.Format,? extends E> formatFactory)
netMask
public static NetMaskConverter<java.lang.RuntimeException> netMask(java.lang.String netMask)
parse
public static ParseConverter parse(Fn<?,? extends java.text.Format,? extends java.lang.Exception> formatFactory)
convertRegExp
public static RegExpConverter<java.lang.RuntimeException> convertRegExp(java.util.regex.Pattern pattern,
java.lang.String replacement)
trys
public static <C,R,E extends java.lang.Exception> TrysFn<C,R,E> trys(java.lang.Iterable<? extends Fn<? super C,? extends R,? extends java.lang.Exception>> iterable,
Fn<? super java.lang.Exception,?,? extends E> errorFn,
Fn<? super java.lang.Exception,? extends R,? extends E> finalFn)
trys
public static <C,R> TrysFn<C,R,java.lang.IllegalStateException> trys(java.lang.Iterable<? extends Fn<? super C,? extends R,? extends java.lang.Exception>> iterable)
retainKeys
public static RetainKeys<java.lang.RuntimeException> retainKeys(java.util.Collection<?> collection)
Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.