Class FieldLocation
- java.lang.Object
-
- org.assertj.core.api.recursive.comparison.FieldLocation
-
- All Implemented Interfaces:
Comparable<FieldLocation>
public final class FieldLocation extends Object implements Comparable<FieldLocation>
Represents the path to a given field. Immutable
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>decomposedPathprivate StringpathToUseInRules
-
Constructor Summary
Constructors Constructor Description FieldLocation(List<String> path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FieldLocation other)booleanequals(Object obj)(package private) FieldLocationfield(String field)List<String>getDecomposedPath()StringgetFieldName()StringgetPathToUseInRules()inthashCode()(package private) booleanmatches(String fieldPath)private static StringpathToUseInRules(List<String> path)(package private) static FieldLocationrootFieldLocation()StringtoString()
-
-
-
Method Detail
-
matches
boolean matches(String fieldPath)
-
getPathToUseInRules
public String getPathToUseInRules()
-
field
FieldLocation field(String field)
-
compareTo
public int compareTo(FieldLocation other)
- Specified by:
compareToin interfaceComparable<FieldLocation>
-
getFieldName
public String getFieldName()
-
rootFieldLocation
static FieldLocation rootFieldLocation()
-
-