org.mutabilitydetector.locations
Class FieldLocation

java.lang.Object
  extended by org.mutabilitydetector.locations.FieldLocation
All Implemented Interfaces:
Comparable<FieldLocation>, CodeLocation<FieldLocation>

@Immutable
public final class FieldLocation
extends Object
implements CodeLocation<FieldLocation>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mutabilitydetector.locations.CodeLocation
CodeLocation.UnknownCodeLocation
 
Constructor Summary
FieldLocation(String fieldName, ClassLocation ownerOfField)
           
 
Method Summary
 int compareTo(FieldLocation other)
           
 boolean equals(Object obj)
           
static FieldLocation fieldLocation(String fieldName, ClassLocation ownerOfField)
           
 String fieldName()
           
 int hashCode()
           
 String prettyPrint()
           
 String typeName()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldLocation

public FieldLocation(String fieldName,
                     ClassLocation ownerOfField)
Method Detail

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.