Class FieldLocation
- java.lang.Object
-
- org.assertj.core.api.recursive.comparison.FieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<FieldLocation>
public final class FieldLocation extends java.lang.Object implements java.lang.Comparable<FieldLocation>
Represents the path to a given field. Immutable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
decomposedPath
private java.lang.String
pathToUseInRules
-
Constructor Summary
Constructors Constructor Description FieldLocation(java.util.List<java.lang.String> path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FieldLocation other)
boolean
equals(java.lang.Object obj)
(package private) FieldLocation
field(java.lang.String field)
java.util.List<java.lang.String>
getDecomposedPath()
java.lang.String
getFieldName()
java.lang.String
getPathToUseInRules()
int
hashCode()
(package private) boolean
matches(java.lang.String fieldPath)
private static java.lang.String
pathToUseInRules(java.util.List<java.lang.String> path)
(package private) static FieldLocation
rootFieldLocation()
java.lang.String
toString()
-
-
-
Method Detail
-
matches
boolean matches(java.lang.String fieldPath)
-
getDecomposedPath
public java.util.List<java.lang.String> getDecomposedPath()
-
getPathToUseInRules
public java.lang.String getPathToUseInRules()
-
field
FieldLocation field(java.lang.String field)
-
compareTo
public int compareTo(FieldLocation other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FieldLocation>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
pathToUseInRules
private static java.lang.String pathToUseInRules(java.util.List<java.lang.String> path)
-
getFieldName
public java.lang.String getFieldName()
-
rootFieldLocation
static FieldLocation rootFieldLocation()
-
-