Package com.fauna.response
Class ConstraintFailure.PathElement
- java.lang.Object
-
- com.fauna.response.ConstraintFailure.PathElement
-
- Enclosing class:
- ConstraintFailure
public static final class ConstraintFailure.PathElement extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PathElement(java.lang.Integer iVal)Initializes a PathElement with an integer value.PathElement(java.lang.String sVal)Initializes a PathElement with a string value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()booleanisString()Tests whether the PathElement stores a string or an integer.static ConstraintFailure.PathElementparse(com.fasterxml.jackson.core.JsonParser parser)Note that this parse method does not advance the parser.java.lang.StringtoString()Converts the PathElement to a string.
-
-
-
Constructor Detail
-
PathElement
public PathElement(java.lang.String sVal)
Initializes a PathElement with a string value.- Parameters:
sVal- The string value.
-
PathElement
public PathElement(java.lang.Integer iVal)
Initializes a PathElement with an integer value.- Parameters:
iVal- The integer value.
-
-
Method Detail
-
parse
public static ConstraintFailure.PathElement parse(com.fasterxml.jackson.core.JsonParser parser) throws java.io.IOException
Note that this parse method does not advance the parser.- Parameters:
parser- A JsonParser instance.- Returns:
- A new PathElement.
- Throws:
java.io.IOException- Can be thrown if e.g. stream ends.
-
isString
public boolean isString()
Tests whether the PathElement stores a string or an integer.- Returns:
- If it's a string, true. Otherwise, false.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Converts the PathElement to a string.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the PathElement.
-
-