Enum RebaseTodoLine.Action

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      COMMENT
      A comment in the file.
      EDIT
      Use commit, but stop for amending
      FIXUP
      like "squash", but discard this commit's log message
      PICK
      Use commit
      REWORD
      Use commit, but edit the commit message
      SQUASH
      Use commit, but meld into previous commit
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String shortToken  
      private java.lang.String token  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Action​(java.lang.String token, java.lang.String shortToken)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static RebaseTodoLine.Action parse​(java.lang.String token)  
      java.lang.String toString()  
      java.lang.String toToken()  
      static RebaseTodoLine.Action valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RebaseTodoLine.Action[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • token

        private final java.lang.String token
      • shortToken

        private final java.lang.String shortToken
    • Constructor Detail

      • Action

        private Action​(java.lang.String token,
                       java.lang.String shortToken)
    • Method Detail

      • values

        public static RebaseTodoLine.Action[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RebaseTodoLine.Action c : RebaseTodoLine.Action.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RebaseTodoLine.Action valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toToken

        public java.lang.String toToken()
        Returns:
        full action token name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<RebaseTodoLine.Action>
      • parse

        public static RebaseTodoLine.Action parse​(java.lang.String token)
        Parameters:
        token -
        Returns:
        the Action