Class FeatureFlag

  • All Implemented Interfaces:

    
    public class FeatureFlag
    
                        
    Since:

    2024-02-17

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      FeatureFlag()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean any(@NotNull() Array<Class<out Object>> feature) has any of feature, empty means false
      static boolean all(@NotNull() Array<Class<out Object>> feature) has all features, empty means true
      static boolean not(@NotNull() Class<out Object> feature) not has the feature
      static boolean has(@NotNull() Class<out Object> feature) has the feature, default false
      • Methods inherited from class java.lang.Object

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

      • FeatureFlag

        FeatureFlag()
    • Method Detail

      • any

         static boolean any(@NotNull() Array<Class<out Object>> feature)

        has any of feature, empty means false

      • all

         static boolean all(@NotNull() Array<Class<out Object>> feature)

        has all features, empty means true

      • not

         static boolean not(@NotNull() Class<out Object> feature)

        not has the feature

      • has

         static boolean has(@NotNull() Class<out Object> feature)

        has the feature, default false