この記事の要約:Javaの列挙型(Enum)が、どのようにして固定された値のセットを提供し、整数定数に代わる型安全なソリューションとなるかを詳説します。また、プログラムを構成する基礎的な要素である字句要素(トークン、識別子)や ...
以下は全て無料です。もし余裕のある方がいらっしゃいましたらカンパください!☺️ mycompilerで確認。 java.util.function.Supplierインターフェースで宣言されている抽象メソッドは、T型のget();と書くことができる。 Supplierは、”提供者”なので、引数を取らず値 ...
Get the scoop on typesafe enums and learn how to use them properly in switch statements, then get started with Java annotations and meta-annotations types like Target, which you can use to clarify the ...