LoginSignup
0
0

More than 1 year has passed since last update.

Java オラクルAPIドキュメント

Posted at

JavaGold(SE11)学習の備忘録
黒本で解いた問題に関連して確認したAPIドキュメントのリンク集

オラクルのドキュメント

関数型インターフェース

インターフェース名 説明 メソッド 戻り値 日本語 英語
Runnable スレッドからインスタンスを実行する run() void
Predicate 1つの引数の述語(boolean値関数)を表す test​(T t) boolean

インターフェース

インターフェース名 説明 主なメソッド 日本語 英語
List 順序付けられたコレクション add​(E e)
get​(int index)
Executor 送信されたRunnableタスクを実行するオブジェクト execute​(Runnable command)
ExecutorService 終了を管理するメソッド、および1つ以上の非同期タスクの進行状況を追跡するFutureを生成できるメソッドを提供するExecutor submit​(Runnable task)
ScheduledExecutorService 指定された遅延時間後または定期的にコマンドを実行するようにスケジュールできるExecutorService schedule​(Runnable command, long delay, TimeUnit unit)
scheduleAtFixedRate​(Runnable command, long initialDelay, long period, TimeUnit unit)
Iterable 実装すると、オブジェクトが拡張for文("for-eachループ"文とも呼ばれる)のターゲットになる forEach​(Consumer<? super T> action)
Stream 順次および並列の集約操作をサポートする汎用的なストリーム forEach​(Consumer<? super T> action)
filter​(Predicate<? super T> predicate)
sorted()
reduce​(BinaryOperator accumulator)
Collection オブジェクトのグループを表す parallelStream()
Collector 目的に応じて実装可能な抽象メソッドが複数用意されている⇒一般的な処理用にCollectorsクラスが提供されている supplier()
accumulator()
combiner()
finisher()
Path ファイル・システム内のファイルを特定するために使用可能なオブジェクト resolve​(Path other)

クラス

クラス名 説明 主なメソッド 日本語 英語
Thread プログラム内での実行スレッド start​()
Executors 送信されたRunnableタスクを実行するオブジェクト execute​(Runnable command)
AtomicInteger 原子的な更新が可能なint値 addAndGet​(int delta)
CopyOnWriteArrayList 基になる配列の新しいコピーを作成することにより、スレッドセーフを実現するArrayListの拡張 add​(E e)
ReentrantLock ReentrantLockは、最後にロックに成功したが、まだロック解除していないスレッドによって所有される lock()
unlock()
Optional 非null値を含んでも含まなくてもよいコンテナ・オブジェクト empty()
isEmpty()
ofNullable​(T value)
orElse​(T other)
orElseGet​(Supplier<? extends T> supplier)
ifPresent​(Consumer<? super T> action)
ifPresentOrElse​(Consumer<? super T> action, Runnable emptyAction)
Arrays 配列をリストとして表示するためのstaticファクトリをもつ stream​(T[] array)
stream​(int[] array)
Collectors 有用な各種リダクション操作を実装したCollectorの実装 toList()
toMap​(Function<? super T,​? extends K> keyMapper, Function<? super T,​? extends U> valueMapper)
File ファイルおよびディレクトリのパス名の抽象表現 exists()
createNewFile()
getAbsolutePath()
mkdir()
listFiles()
BufferedReader 文字、配列、行をバッファリングすることによって、文字型入力ストリームからテキストを効率良く読み込む readLine()
lines()
BufferedInputStream 内部バッファ配列が作成される⇒バイトストリームを扱うときに使う read()
Scanner 正規表現を使用したプリミティブ型および文字列の構文解析が可能な、単純なテキスト・スキャナ next()
useDelimiter​(String pattern)
ObjectOutputStream プリミティブ・データ型とJavaオブジェクトのグラフをOutputStreamに書き込む writeObject​(Object obj)
Files ファイル、ディレクトリ、またはその他の種類のファイルを操作するstaticメソッドだけで構成される createFile​(Path path, FileAttribute<?>... attrs)
copy(Path source,OutputStream out)
move​(Path source, Path target, CopyOption... options)
newBufferedWriter​(Path path, OpenOption... options)

抽象クラス

クラス名 説明 主なメソッド 日本語 英語
InputStream バイト入力ストリームを表現するすべてのクラスのスーパー・クラス readAllBytes()
readNBytes​(int len)

nioパッケージの互換性

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0