org.mutabilitydetector.locations
Class FieldLocation
java.lang.Object
org.mutabilitydetector.locations.FieldLocation
- All Implemented Interfaces:
- Comparable<FieldLocation>, CodeLocation<FieldLocation>
@Immutable
public final class FieldLocation
- extends Object
- implements CodeLocation<FieldLocation>
FieldLocation
public FieldLocation(String fieldName,
ClassLocation ownerOfField)
fieldLocation
public static FieldLocation fieldLocation(String fieldName,
ClassLocation ownerOfField)
fieldName
public String fieldName()
typeName
public String typeName()
- Specified by:
typeName
in interface CodeLocation<FieldLocation>
compareTo
public int compareTo(FieldLocation other)
- Specified by:
compareTo
in interface Comparable<FieldLocation>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
prettyPrint
public String prettyPrint()
- Specified by:
prettyPrint
in interface CodeLocation<FieldLocation>
Copyright © 2013. All Rights Reserved.