Class VcsType

  • All Implemented Interfaces:

    
    public final class VcsType
    
                        

    A class for Version Control System types. Each type has one or more aliases associated to it, where the first alias is the definite name. This class is not implemented as an enum as constructing from an unknown type should be supported while maintaining that type as the primary alias for the string representation.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class VcsType.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      VcsType(String name, String aliases) A constructor that takes a name in addition to a variable number of other aliases to enforce a non-empty list of final aliases.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<String> getAliases()
      String toString()
      final static VcsType forName(String name) Search all known VCS types for being associated with given name return the first matching type, or create a new VcsType with the given name if no known type matches.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VcsType

        VcsType(String name, String aliases)
        A constructor that takes a name in addition to a variable number of other aliases to enforce a non-empty list of final aliases.