public class EntityTag extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, java.lang.Comparable<EntityTag>
Constructor and Description |
---|
EntityTag(java.lang.String tag) |
EntityTag(java.lang.String tag,
boolean weak) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EntityTag o) |
boolean |
equals(java.lang.Object obj) |
static EntityTag |
generate(java.lang.String... material)
Utility method for generating ETags.
|
java.lang.String |
getTag() |
int |
hashCode() |
boolean |
isWeak() |
boolean |
isWild() |
static boolean |
matches(EntityTag tag1,
EntityTag tag2) |
static boolean |
matches(EntityTag etag,
java.lang.String... material)
Checks that the passed in ETag matches the ETag generated by the generate
method
|
static boolean |
matches(EntityTag tag1,
java.lang.String tag2) |
static boolean |
matches(java.lang.String tag1,
java.lang.String tag2) |
static boolean |
matchesAny(EntityTag tag1,
EntityTag[] tags) |
static boolean |
matchesAny(EntityTag tag1,
EntityTag[] tags,
boolean weak) |
static boolean |
matchesAny(EntityTag tag1,
java.lang.String tags) |
static boolean |
matchesAny(EntityTag tag1,
java.lang.String tags,
boolean weak) |
static boolean |
matchesAny(java.lang.String tag1,
java.lang.String tags) |
static boolean |
matchesAny(java.lang.String tag1,
java.lang.String tags,
boolean weak) |
static EntityTag |
parse(java.lang.String entity_tag) |
static EntityTag[] |
parseTags(java.lang.String entity_tags) |
java.lang.String |
toString() |
static java.lang.String |
toString(EntityTag... tags) |
static java.lang.String |
toString(java.lang.String... tags) |
public static final EntityTag WILD
public EntityTag(java.lang.String tag)
public EntityTag(java.lang.String tag, boolean weak)
public static EntityTag parse(java.lang.String entity_tag)
public static EntityTag[] parseTags(java.lang.String entity_tags)
public static boolean matchesAny(EntityTag tag1, java.lang.String tags)
public static boolean matchesAny(EntityTag tag1, java.lang.String tags, boolean weak)
public static boolean matchesAny(java.lang.String tag1, java.lang.String tags)
public static boolean matchesAny(java.lang.String tag1, java.lang.String tags, boolean weak)
public static boolean matches(java.lang.String tag1, java.lang.String tag2)
public static boolean matches(EntityTag tag1, java.lang.String tag2)
public boolean isWild()
public java.lang.String getTag()
public boolean isWeak()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static EntityTag generate(java.lang.String... material)
public static boolean matches(EntityTag etag, java.lang.String... material)
public static java.lang.String toString(EntityTag... tags)
public static java.lang.String toString(java.lang.String... tags)
Copyright © 2010 - 2020 Adobe. All Rights Reserved