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.String fqn
    Fully qualified name of the package, eg.
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(CodePackage that)  
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    java.util.Collection<CodeMember> members()  
    int size()
    Returns the size of this package.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • fqn

      public final java.lang.String fqn
      Fully qualified name of the package, eg. java.util.concurrent.
  • Method Details

    • members

      public java.util.Collection<CodeMember> 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:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • compareTo

      public int compareTo​(CodePackage that)
      Specified by:
      compareTo in interface java.lang.Comparable<CodePackage>