Class Flag

  • All Implemented Interfaces:
    com.hexagonkt.args.Property

    
    public final class Flag
     implements Property<Boolean>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Boolean optional
      private final Regex regex
      private final KClass<Boolean> type
      private final Set<String> names
      private final String description
      private final Boolean multiple
      private final String tag
      private final List<Boolean> values
    • Constructor Summary

      Constructors 
      Constructor Description
      Flag(Character shortName, String name, String description, Boolean multiple)
      Flag(Set<String> names, String description, Boolean multiple, String tag, List<Boolean> values)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean getOptional()
      Regex getRegex()
      KClass<Boolean> getType()
      Set<String> getNames()
      String getDescription()
      Boolean getMultiple()
      String getTag() TODO To group properties (for listing or alternatives).
      List<Boolean> getValues()
      Property<Boolean> addValues(Property<?> value)
      Flag addValue(String value)
      • Methods inherited from class com.hexagonkt.args.Property

        check, typeText
      • Methods inherited from class java.lang.Object

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

      • Flag

        Flag(Character shortName, String name, String description, Boolean multiple)
      • Flag

        Flag(Set<String> names, String description, Boolean multiple, String tag, List<Boolean> values)