org.mutabilitydetector.locations
Class ClassLocation

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

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


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

Constructor Detail

ClassLocation

public ClassLocation(String dottedClassName)
Method Detail

typeName

public String typeName()
Specified by:
typeName in interface CodeLocation<ClassLocation>

compareTo

public int compareTo(ClassLocation other)
Specified by:
compareTo in interface Comparable<ClassLocation>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

fromInternalName

public static ClassLocation fromInternalName(String internalClassName)

from

public static ClassLocation from(Slashed slashed)

from

public static ClassLocation from(Dotted dotted)

prettyPrint

public String prettyPrint()
Specified by:
prettyPrint in interface CodeLocation<ClassLocation>


Copyright © 2013. All Rights Reserved.