Apache Commons logo Commons IO

Metric Results

[ summary ] [ packages ] [ cycles ] [ explanations ]

The following document contains the results of a JDepend metric analysis. The various metrics are defined at the bottom of this document.

Summary

[ summary ] [ packages ] [ cycles ] [ explanations ]

Package TC CC AC Ca Ce A I D V
org.apache.commons.io 23 22 1 5 12 4.0% 71.0% 25.0% 1
org.apache.commons.io.comparator 10 9 1 1 4 10.0% 80.0% 10.0% 1
org.apache.commons.io.filefilter 25 22 3 1 6 12.0% 86.0% 2.0% 1
org.apache.commons.io.input 28 25 3 1 10 11.0% 91.0% 2.0% 1
org.apache.commons.io.monitor 5 4 1 0 6 20.0% 100.0% 20.0% 1
org.apache.commons.io.output 21 20 1 1 8 5.0% 89.0% 6.0% 1

Packages

[ summary ] [ packages ] [ cycles ] [ explanations ]

org.apache.commons.io

Afferent Couplings Efferent Couplings Abstractness Instability Distance
5 12 4.0% 71.0% 25.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.io.DirectoryWalker
org.apache.commons.io.ByteOrderMark
org.apache.commons.io.Charsets
org.apache.commons.io.CopyUtils
org.apache.commons.io.DirectoryWalker$CancelException
org.apache.commons.io.EndianUtils
org.apache.commons.io.FileCleaner
org.apache.commons.io.FileCleaningTracker
org.apache.commons.io.FileCleaningTracker$Reaper
org.apache.commons.io.FileCleaningTracker$Tracker
org.apache.commons.io.FileDeleteStrategy
org.apache.commons.io.FileDeleteStrategy$ForceFileDeleteStrategy
org.apache.commons.io.FileExistsException
org.apache.commons.io.FileSystemUtils
org.apache.commons.io.FileUtils
org.apache.commons.io.FilenameUtils
org.apache.commons.io.HexDump
org.apache.commons.io.IOCase
org.apache.commons.io.IOExceptionWithCause
org.apache.commons.io.IOUtils
org.apache.commons.io.LineIterator
org.apache.commons.io.TaggedIOException
org.apache.commons.io.ThreadMonitor
org.apache.commons.io.comparator
org.apache.commons.io.filefilter
org.apache.commons.io.input
org.apache.commons.io.monitor
org.apache.commons.io.output
java.io
java.lang
java.lang.ref
java.math
java.net
java.nio
java.nio.channels
java.nio.charset
java.util
java.util.zip
org.apache.commons.io.filefilter
org.apache.commons.io.output

org.apache.commons.io.comparator

Afferent Couplings Efferent Couplings Abstractness Instability Distance
1 4 10.0% 80.0% 10.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.io.comparator.AbstractFileComparator
org.apache.commons.io.comparator.CompositeFileComparator
org.apache.commons.io.comparator.DefaultFileComparator
org.apache.commons.io.comparator.DirectoryFileComparator
org.apache.commons.io.comparator.ExtensionFileComparator
org.apache.commons.io.comparator.LastModifiedFileComparator
org.apache.commons.io.comparator.NameFileComparator
org.apache.commons.io.comparator.PathFileComparator
org.apache.commons.io.comparator.ReverseComparator
org.apache.commons.io.comparator.SizeFileComparator
org.apache.commons.io.monitor
java.io
java.lang
java.util
org.apache.commons.io

org.apache.commons.io.filefilter

Afferent Couplings Efferent Couplings Abstractness Instability Distance
1 6 12.0% 86.0% 2.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.io.filefilter.AbstractFileFilter
org.apache.commons.io.filefilter.ConditionalFileFilter
org.apache.commons.io.filefilter.IOFileFilter
org.apache.commons.io.filefilter.AgeFileFilter
org.apache.commons.io.filefilter.AndFileFilter
org.apache.commons.io.filefilter.CanReadFileFilter
org.apache.commons.io.filefilter.CanWriteFileFilter
org.apache.commons.io.filefilter.DelegateFileFilter
org.apache.commons.io.filefilter.DirectoryFileFilter
org.apache.commons.io.filefilter.EmptyFileFilter
org.apache.commons.io.filefilter.FalseFileFilter
org.apache.commons.io.filefilter.FileFileFilter
org.apache.commons.io.filefilter.FileFilterUtils
org.apache.commons.io.filefilter.HiddenFileFilter
org.apache.commons.io.filefilter.MagicNumberFileFilter
org.apache.commons.io.filefilter.NameFileFilter
org.apache.commons.io.filefilter.NotFileFilter
org.apache.commons.io.filefilter.OrFileFilter
org.apache.commons.io.filefilter.PrefixFileFilter
org.apache.commons.io.filefilter.RegexFileFilter
org.apache.commons.io.filefilter.SizeFileFilter
org.apache.commons.io.filefilter.SuffixFileFilter
org.apache.commons.io.filefilter.TrueFileFilter
org.apache.commons.io.filefilter.WildcardFileFilter
org.apache.commons.io.filefilter.WildcardFilter
org.apache.commons.io
java.io
java.lang
java.nio.charset
java.util
java.util.regex
org.apache.commons.io

org.apache.commons.io.input

Afferent Couplings Efferent Couplings Abstractness Instability Distance
1 10 11.0% 91.0% 2.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.ProxyReader
org.apache.commons.io.input.TailerListener
org.apache.commons.io.input.AutoCloseInputStream
org.apache.commons.io.input.BOMInputStream
org.apache.commons.io.input.BOMInputStream$1
org.apache.commons.io.input.BoundedInputStream
org.apache.commons.io.input.BrokenInputStream
org.apache.commons.io.input.CharSequenceInputStream
org.apache.commons.io.input.CharSequenceReader
org.apache.commons.io.input.ClassLoaderObjectInputStream
org.apache.commons.io.input.CloseShieldInputStream
org.apache.commons.io.input.ClosedInputStream
org.apache.commons.io.input.CountingInputStream
org.apache.commons.io.input.DemuxInputStream
org.apache.commons.io.input.NullInputStream
org.apache.commons.io.input.NullReader
org.apache.commons.io.input.ReaderInputStream
org.apache.commons.io.input.ReversedLinesFileReader
org.apache.commons.io.input.ReversedLinesFileReader$1
org.apache.commons.io.input.ReversedLinesFileReader$FilePart
org.apache.commons.io.input.SwappedDataInputStream
org.apache.commons.io.input.TaggedInputStream
org.apache.commons.io.input.Tailer
org.apache.commons.io.input.TailerListenerAdapter
org.apache.commons.io.input.TeeInputStream
org.apache.commons.io.input.XmlStreamReader
org.apache.commons.io.input.XmlStreamReaderException
org.apache.commons.io.output
java.io
java.lang
java.lang.reflect
java.net
java.nio
java.nio.charset
java.text
java.util
java.util.regex
org.apache.commons.io

org.apache.commons.io.monitor

Afferent Couplings Efferent Couplings Abstractness Instability Distance
0 6 20.0% 100.0% 20.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.io.monitor.FileAlterationListener
org.apache.commons.io.monitor.FileAlterationListenerAdaptor
org.apache.commons.io.monitor.FileAlterationMonitor
org.apache.commons.io.monitor.FileAlterationObserver
org.apache.commons.io.monitor.FileEntry
None java.io
java.lang
java.util
java.util.concurrent
org.apache.commons.io
org.apache.commons.io.comparator

org.apache.commons.io.output

Afferent Couplings Efferent Couplings Abstractness Instability Distance
1 8 5.0% 89.0% 6.0%
Abstract Classes Concrete Classes Used by Packages Uses Packages
org.apache.commons.io.output.ThresholdingOutputStream
org.apache.commons.io.output.BrokenOutputStream
org.apache.commons.io.output.ByteArrayOutputStream
org.apache.commons.io.output.ChunkedOutputStream
org.apache.commons.io.output.ChunkedWriter
org.apache.commons.io.output.CloseShieldOutputStream
org.apache.commons.io.output.ClosedOutputStream
org.apache.commons.io.output.CountingOutputStream
org.apache.commons.io.output.DeferredFileOutputStream
org.apache.commons.io.output.DemuxOutputStream
org.apache.commons.io.output.FileWriterWithEncoding
org.apache.commons.io.output.LockableFileWriter
org.apache.commons.io.output.NullOutputStream
org.apache.commons.io.output.NullWriter
org.apache.commons.io.output.ProxyOutputStream
org.apache.commons.io.output.ProxyWriter
org.apache.commons.io.output.StringBuilderWriter
org.apache.commons.io.output.TaggedOutputStream
org.apache.commons.io.output.TeeOutputStream
org.apache.commons.io.output.WriterOutputStream
org.apache.commons.io.output.XmlStreamWriter
org.apache.commons.io
java.io
java.lang
java.nio
java.nio.charset
java.util
java.util.regex
org.apache.commons.io
org.apache.commons.io.input

Cycles

[ summary ] [ packages ] [ cycles ] [ explanations ]

Package Package Dependencies
org.apache.commons.io org.apache.commons.io.filefilter
org.apache.commons.io
org.apache.commons.io.comparator org.apache.commons.io
org.apache.commons.io.filefilter
org.apache.commons.io
org.apache.commons.io.filefilter org.apache.commons.io
org.apache.commons.io.filefilter
org.apache.commons.io.input org.apache.commons.io
org.apache.commons.io.filefilter
org.apache.commons.io
org.apache.commons.io.monitor org.apache.commons.io.comparator
org.apache.commons.io
org.apache.commons.io.filefilter
org.apache.commons.io
org.apache.commons.io.output org.apache.commons.io.input
org.apache.commons.io
org.apache.commons.io.filefilter
org.apache.commons.io

Explanation

[ summary ] [ packages ] [ cycles ] [ explanations ]

The following explanations are for quick reference and are lifted directly from the original JDepend documentation.

Term Description
Number of Classes The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.
Afferent Couplings The number of other packages that depend upon classes within the package is an indicator of the package's responsibility.
Efferent Couplings The number of other packages that the classes in the package depend upon is an indicator of the package's independence.
Abstractness The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package.
Instability The ratio of efferent coupling (Ce) to total coupling (Ce / (Ce + Ca)). This metric is an indicator of the package's resilience to change. The range for this metric is 0 to 1, with I=0 indicating a completely stable package and I=1 indicating a completely instable package.
Distance The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible.
Cycles Packages participating in a package dependency cycle are in a deadly embrace with respect to reusability and their release cycle. Package dependency cycles can be easily identified by reviewing the textual reports of dependency cycles. Once these dependency cycles have been identified with JDepend, they can be broken by employing various object-oriented techniques.