Class Version

java.lang.Object
org.apache.jena.atlas.lib.Version

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a class to the version information
    void
    Prints version information for all registered classes to the given writer
    Gets user friendly version information for all registered classes as a 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 Details

    • Version

      public Version()
  • Method Details

    • addClass

      public void addClass(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 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 String toString()
      Gets user friendly version information for all registered classes as a string
      Overrides:
      toString in class Object