Package pl.gdela.socomo.codemap
Class CodePackage
java.lang.Object
pl.gdela.socomo.codemap.CodePackage
- All Implemented Interfaces:
java.lang.Comparable<CodePackage>
public class CodePackage extends java.lang.Object implements java.lang.Comparable<CodePackage>
Package of java code. Grouped in a package are classes (interfaces, enums and annotations
are also considered as classes) and their methods and fields. Each, a class, a method and
a field, is represented as
CodeMember.- See Also:
Codemap
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringfqnFully qualified name of the package, eg. -
Method Summary
Modifier and Type Method Description intcompareTo(CodePackage that)booleanequals(java.lang.Object o)inthashCode()java.util.Collection<CodeMember>members()intsize()Returns the size of this package.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
fqn
public final java.lang.String fqnFully qualified name of the package, eg.java.util.concurrent.
-
-
Method Details
-
members
-
size
public int size()Returns the size of this package. The returned number doesn't have a real-world meaning, so can be used only to relatively compare sizes of two packages, and this comparision should match an average opinion of a human developer. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<CodePackage>
-