Class ETag
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializable.Base
-
- com.fasterxml.jackson.databind.JsonNode
-
- com.fasterxml.jackson.databind.node.BaseJsonNode
-
- com.fasterxml.jackson.databind.node.ValueNode
-
- com.fasterxml.jackson.databind.node.TextNode
-
- de.captaingoldfish.scim.sdk.common.resources.base.ScimTextNode
-
- de.captaingoldfish.scim.sdk.common.etag.ETag
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.TreeNode,com.fasterxml.jackson.databind.JsonSerializable,ScimNode,Serializable,Iterable<com.fasterxml.jackson.databind.JsonNode>
public class ETag extends ScimTextNode
author Pascal Knueppel
created at: 19.11.2019 - 20:03
this class is used as etag representation- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringWEAK_IDENTIFIER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)comparison of ETag's must be done due to the following rulesStringgetEntityTag()static ETagnewInstance(String version)a creation method especially used with the methodScimObjectNode.getStringAttribute(String, Class)static ETagparseETag(String version)checks the given string and parses it into an entity tagStringtoPrettyString()StringtoString()-
Methods inherited from class com.fasterxml.jackson.databind.node.TextNode
appendQuoted, asBoolean, asDouble, asInt, asLong, asText, asText, asToken, binaryValue, getBinaryValue, getNodeType, hashCode, serialize, textValue, valueOf
-
Methods inherited from class com.fasterxml.jackson.databind.node.ValueNode
_at, deepCopy, findParent, findParents, findValue, findValues, findValuesAsText, get, get, has, has, hasNonNull, hasNonNull, isEmpty, path, path, serializeWithType
-
Methods inherited from class com.fasterxml.jackson.databind.node.BaseJsonNode
findPath, numberType, required, required, traverse, traverse
-
Methods inherited from class com.fasterxml.jackson.databind.JsonNode
_reportRequiredViolation, _this, asBoolean, asDouble, asInt, asLong, at, at, bigIntegerValue, booleanValue, canConvertToInt, canConvertToLong, decimalValue, doubleValue, elements, equals, fieldNames, fields, findParents, findValues, findValuesAsText, floatValue, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isObject, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, require, requiredAt, requiredAt, requireNonNull, shortValue, size, with, withArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface de.captaingoldfish.scim.sdk.common.resources.base.ScimNode
getAttributeDescription, getAttributeName, getCanonicalValues, getMutability, getReferenceTypes, getReturned, getSchemaAttribute, getScimNodeName, getUniqueness, getValueType, isCaseExact, isMultiValued, isRequired
-
-
-
-
Field Detail
-
WEAK_IDENTIFIER
public static final String WEAK_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public static ETag newInstance(String version)
a creation method especially used with the methodScimObjectNode.getStringAttribute(String, Class)- Parameters:
version- an eTag that should be parsed- Returns:
- a new ETag instance
-
parseETag
public static ETag parseETag(String version)
checks the given string and parses it into an entity tag- Parameters:
version- the version string- Returns:
- the entity tag instance representation
-
getEntityTag
public String getEntityTag()
- Returns:
- the entity tag that is represented by this instance
-
toString
public String toString()
- Overrides:
toStringin classcom.fasterxml.jackson.databind.node.BaseJsonNode
-
toPrettyString
public String toPrettyString()
- Overrides:
toPrettyStringin classcom.fasterxml.jackson.databind.node.BaseJsonNode
-
equals
public boolean equals(Object o)
comparison of ETag's must be done due to the following rules+--------+--------+-------------------+-----------------+ | ETag 1 | ETag 2 | Strong Comparison | Weak Comparison | +--------+--------+-------------------+-----------------+ | W/"1" | W/"1" | no match | match | | W/"1" | W/"2" | no match | no match | | W/"1" | "1" | no match | match | | "1" | "1" | match | match | +--------+--------+-------------------+-----------------+- Overrides:
equalsin classcom.fasterxml.jackson.databind.node.TextNode
-
-