Class Version


  • public class Version
    extends java.lang.Object
    Manage version information for subsystems
    • Constructor Summary

      Constructors 
      Constructor Description
      Version()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addClass​(java.lang.Class<?> c)
      Add a class to the version information
      void print​(IndentedWriter writer)
      Prints version information for all registered classes to the given writer
      java.lang.String toString()
      Gets user friendly version information for all registered classes as a string
      java.lang.String toString​(boolean singleLine)
      Gets user friendly version information for all registered classes as a string
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Version

        public Version()
    • Method Detail

      • addClass

        public void addClass​(java.lang.Class<?> c)
        Add a class to the version information
        Parameters:
        c - Class
      • print

        public void print​(IndentedWriter writer)
        Prints version information for all registered classes to the given writer
        Parameters:
        writer - Writer to print version information to
      • toString

        public java.lang.String toString​(boolean singleLine)
        Gets user friendly version information for all registered classes as a string
        Parameters:
        singleLine - Whether to print to a single line
        Returns:
        Version information
      • toString

        public java.lang.String toString()
        Gets user friendly version information for all registered classes as a string
        Overrides:
        toString in class java.lang.Object