public abstract class Tag<T> extends Object implements Comparable<Tag<?>>
| Constructor and Description |
|---|
Tag(TagType type)
Creates the tag with no name.
|
Tag(TagType type,
String name)
Creates the tag with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Tag<T> |
clone()
Clones the Tag
|
static Map<String,Tag<?>> |
cloneMap(Map<String,Tag<?>> map)
Clones a Map
|
int |
compareTo(Tag other) |
boolean |
equals(Object other) |
String |
getName()
Gets the name of this tag.
|
TagType |
getType()
Returns the type of this tag
|
abstract T |
getValue()
Gets the value of this tag.
|
public Tag(TagType type)
public final String getName()
public TagType getType()
public abstract T getValue()
public static Map<String,Tag<?>> cloneMap(Map<String,Tag<?>> map)
map - the mappublic int compareTo(Tag other)
compareTo in interface Comparable<Tag<?>>Copyright © 2011–2014 Flow Powered. All rights reserved.