Class JLeftPadded<T>

  • Type Parameters:
    T -

    public class JLeftPadded<T>
    extends java.lang.Object
    A Java element that could have space preceding some delimiter. For example an array dimension could have space before the opening bracket, and the containing element could have a prefix that occurs after the bracket.
    • Constructor Detail

      • JLeftPadded

        public JLeftPadded()
    • Method Detail

      • map

        public JLeftPadded<T> map​(java.util.function.UnaryOperator<T> map)
      • withElement

        @Nullable
        public static <T> @Nullable JLeftPadded<T> withElement​(@Nullable
                                                               @Nullable JLeftPadded<T> before,
                                                               @Nullable
                                                               T elements)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • build

        public static <T> JLeftPadded<T> build​(T element)