- java.lang.Object
-
- org.mal_lang.langspec.Meta
-
public final class Meta extends Object
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getEntries()
Returns all entries in thisMeta
object.String
getEntry(String key)
Returns the value of the entry with the keykey
in thisMeta
object.boolean
hasEntry(String key)
Returns whetherkey
is the key of an entry in thisMeta
object.
-
-
-
Method Detail
-
hasEntry
public boolean hasEntry(String key)
Returns whetherkey
is the key of an entry in thisMeta
object.- Parameters:
key
- the key of the entry- Returns:
- whether
key
is the key of an entry in thisMeta
object - Throws:
NullPointerException
- ifkey
isnull
- Since:
- 1.0.0
-
getEntry
public String getEntry(String key)
Returns the value of the entry with the keykey
in thisMeta
object.- Parameters:
key
- the key of the entry- Returns:
- the value of the entry with the key
key
in thisMeta
object - Throws:
NullPointerException
- ifkey
isnull
IllegalArgumentException
- ifkey
is not the key of an entry in thisMeta
object- Since:
- 1.0.0
-
-