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