関数型インターフェース

背景
投稿者投稿者みかみいいね3お気に入り登録1
プレイ回数849難易度(4.1) 278打 長文 英字
関数型インターフェースを覚えよう!!
java.util.functionパッケージの基本となる4つのインターフェース+α
(Java Gold SE8 対策)

4つの基本型とそれぞれのプリミティブ特殊化型

Supplier<T>
(IntSupplier / LongSupplier / DoubleSupplier /BooleanSupplier)

Predicate<T>
(IntPrediate / LongPredicate / DoublePredicate)

Consumer<T>
(IntConsumer / LongConsumer DoubleConsumer)

Function<T,R>
(IntFunction<R> / LongFunction<R> /DoubleFunction<R>)

関連タイピング

問題文

ふりがな非表示 ふりがな表示

(supplier<t> t get())

Supplier<T> T get()

(predicate<t> boolean test(t t))

Predicate<T> boolean test(T t)

(consumer<t> void accept(t t))

Consumer<T> void accept(T t)

(function<t,r> r apply(t t))

Function<T,R> R apply(T t)

(bifunction<t,u,r> r apply(t t, u u))

BiFunction<T,U,R> R apply(T t, U u)

(unaryoperator<t> t apply(t t))

UnaryOperator<T> T apply(T t)

(binaryoperator<t> t apply(t t, t t))

BinaryOperator<T> T apply(T t, T t)

(runnable void run())

Runnable void run()

(comparator<t> int compare(t o1, t o2))

Comparator<T> int compare(T o1,T o2)

(callable<v> v call())

Callable<V> V call()

◆コメントを投稿

※誹謗中傷、公序良俗に反するコメント、個人情報の投稿、歌詞の投稿、出会い目的の投稿、無関係な宣伝行為は禁止です。

※このゲームにコメントするにはログインが必要です。

※コメントは日本語で投稿してください。

みかみのタイピング

オススメの新着タイピング

タイピング練習講座 ローマ字入力表 アプリケーションの使い方 よくある質問

人気ランキング

注目キーワード