java.lang.Object
ushiosan.jvm.UR
-
Method Summary
Modifier and TypeMethodDescriptionGets the instance of the current classgetProperty(@NotNull @PropertyKey(resourceBundle="ushiosan.jvm.jvm-utilities") String key) Looks up the property value inside the library properties file and returns its result on successgetProperty(@NotNull @PropertyKey(resourceBundle="ushiosan.jvm.jvm-utilities") String key, @NotNull String defaultValue) Looks up the property value inside the library properties file and returns its result on success
-
Method Details
-
getInstance
Gets the instance of the current class- Returns:
- current instance class
-
getProperty
@NotNull public @NotNull Optional<String> getProperty(@NotNull @PropertyKey(resourceBundle="ushiosan.jvm.jvm-utilities") @NotNull @PropertyKey(resourceBundle="ushiosan.jvm.jvm-utilities") String key) Looks up the property value inside the library properties file and returns its result on success- Parameters:
key- the property you want to search for- Returns:
- the value of the property or
Optional.empty()if the property does not exist
-
getProperty
@NotNull public @NotNull String getProperty(@NotNull @PropertyKey(resourceBundle="ushiosan.jvm.jvm-utilities") @NotNull @PropertyKey(resourceBundle="ushiosan.jvm.jvm-utilities") String key, @NotNull @NotNull String defaultValue) Looks up the property value inside the library properties file and returns its result on success- Parameters:
key- the property you want to search fordefaultValue- default value if property not found- Returns:
- the value of the property or
defaultValueif the property does not exist
-