Updated the LicenseMeta.java

This commit is contained in:
Mathias Wagner 2023-09-17 17:19:35 +02:00
parent f8057a59a5
commit 8b85eddf44
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -37,4 +37,31 @@ public class LicenseMeta {
return value; return value;
} }
/**
* Gets the value of the meta information as {@link Integer}
*
* @return the value of the meta information as {@link Integer}
*/
public int getAsInteger() {
return Integer.parseInt(value);
}
/**
* Gets the value of the meta information as {@link Double}
*
* @return the value of the meta information as {@link Double}
*/
public double getAsDouble() {
return Double.parseDouble(value);
}
/**
* Gets the value of the meta information as {@link Boolean}
*
* @return the value of the meta information as {@link Boolean}
*/
public boolean getAsBoolean() {
return Boolean.parseBoolean(value);
}
} }