public class TiledObjectTypes extends Object implements Map<String,TiledObjectType>
A TiledObjectTypes object represents a set of object types read from a Tiled object types XML file. It corresponds to an <objecttypes> tag in such a file. A TiledObjectTypes object can be used as an unmodifiable Map with object type names as keys and the object types themselves as values.
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
Set<Map.Entry<String,TiledObjectType>> |
entrySet() |
TiledObjectType |
get(Object o) |
boolean |
isEmpty() |
Set<String> |
keySet() |
TiledObjectType |
put(String k,
TiledObjectType v) |
void |
putAll(Map<? extends String,? extends TiledObjectType> map) |
TiledObjectType |
remove(Object o) |
int |
size() |
Collection<TiledObjectType> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public final int size()
size
in interface Map<String,TiledObjectType>
public final boolean isEmpty()
isEmpty
in interface Map<String,TiledObjectType>
public final boolean containsKey(Object o)
containsKey
in interface Map<String,TiledObjectType>
public final boolean containsValue(Object o)
containsValue
in interface Map<String,TiledObjectType>
public final TiledObjectType get(Object o)
get
in interface Map<String,TiledObjectType>
public final TiledObjectType put(String k, TiledObjectType v)
put
in interface Map<String,TiledObjectType>
public final TiledObjectType remove(Object o)
remove
in interface Map<String,TiledObjectType>
public final void putAll(Map<? extends String,? extends TiledObjectType> map)
putAll
in interface Map<String,TiledObjectType>
public final void clear()
clear
in interface Map<String,TiledObjectType>
public final Set<String> keySet()
keySet
in interface Map<String,TiledObjectType>
public final Collection<TiledObjectType> values()
values
in interface Map<String,TiledObjectType>
public final Set<Map.Entry<String,TiledObjectType>> entrySet()
entrySet
in interface Map<String,TiledObjectType>
Copyright © 2020. All rights reserved.