mirror of
https://github.com/BlueMap-Minecraft/BlueMapAPI.git
synced 2025-01-05 23:58:38 +01:00
Add shortcut methods to MarkerSet
This commit is contained in:
parent
49b51f400d
commit
58d8edf48e
@ -159,6 +159,33 @@ public Map<String, Marker> getMarkers() {
|
||||
return markers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to add a {@link Marker} to this {@link MarkerSet}.<br>
|
||||
* Shortcut for: <code>getMarkers().get(String)</code>
|
||||
* @see Map#get(Object)
|
||||
*/
|
||||
public Marker get(String key) {
|
||||
return getMarkers().get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to add a {@link Marker} to this {@link MarkerSet}.<br>
|
||||
* Shortcut for: <code>getMarkers().put(String,Marker)</code>
|
||||
* @see Map#put(Object, Object)
|
||||
*/
|
||||
public Marker put(String key, Marker marker) {
|
||||
return getMarkers().put(key, marker);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to remove a {@link Marker} from this {@link MarkerSet}.<br>
|
||||
* Shortcut for: <code>getMarkers().remove(String)</code>
|
||||
* @see Map#remove(Object)
|
||||
*/
|
||||
public Marker remove(String key) {
|
||||
return getMarkers().remove(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user