Class Example

  • All Implemented Interfaces:
    org.refcodes.mixin.DescriptionAccessor

    public class Example
    extends Object
    implements org.refcodes.mixin.DescriptionAccessor
    An example usage item describing a usage scenario.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.mixin.DescriptionAccessor

        org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B extends org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>>, org.refcodes.mixin.DescriptionAccessor.DescriptionMutator, org.refcodes.mixin.DescriptionAccessor.DescriptionProperty
    • Constructor Summary

      Constructors 
      Constructor Description
      Example​(String aDescription, Operand<?>... aOperands)
      Constructs an example usage.
    • Constructor Detail

      • Example

        public Example​(String aDescription,
                       Operand<?>... aOperands)
        Constructs an example usage.
        Parameters:
        aDescription - The example's description.
        aOperands - The command line arguments required by the example.
    • Method Detail

      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.refcodes.mixin.DescriptionAccessor
      • getOperands

        public Operand<?>[] getOperands()
        Retrieves the command line arguments required by the example.
        Returns:
        The according command line arguments.