Class ImplicitTuple


  • public class ImplicitTuple
    extends java.lang.Object
    The implicit flag of a scalar event is a pair of boolean values that indicate if the tag may be omitted when the scalar is emitted in a plain and non-plain style correspondingly.
    See Also:
    Events
    • Field Detail

      • plain

        private final boolean plain
      • nonPlain

        private final boolean nonPlain
    • Constructor Detail

      • ImplicitTuple

        public ImplicitTuple​(boolean plain,
                             boolean nonplain)
        Create
        Parameters:
        plain - - true when tag can be omitted in plain
        nonplain - - true when tag can be omitted in non-plain
    • Method Detail

      • canOmitTagInPlainScalar

        public boolean canOmitTagInPlainScalar()
        Returns:
        true when tag may be omitted when the scalar is emitted in a plain style.
      • canOmitTagInNonPlainScalar

        public boolean canOmitTagInNonPlainScalar()
        Returns:
        true when tag may be omitted when the scalar is emitted in a non-plain style.
      • bothFalse

        public boolean bothFalse()
        getter
        Returns:
        true when both are false
      • toString

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