/** * Converts the enum value to a camel case string. e.g ENUM_CONST_VALUE {@literal ->} enumConstValue * * @param e enum * * @return enum string changed to camel case format */ public static String enumJsonName(Enum<?> e) { return camelCase(e.name()); }
/** * Constructor. */ DefaultPostAggregationType() { this.jsonName = EnumUtils.enumJsonName(this); }
/** * Get the value for the given bouncer value. * * @param bouncerValue Bouncer pass-through value to get the BouncerAuthorizationStatus for * * @return The matched value * * @throws IllegalArgumentException if this enum type has no constant with the specified bouncer value */ public static BouncerAuthorizationStatus forBouncerValue(int bouncerValue) { return EnumUtils.forKey(bouncerValue, BOUNCER_VALUE_TO_STATUS, BouncerAuthorizationStatus.class); } }
/** * Constructor, build name using camel cased enum name. */ DefaultDimensionFieldTag() { this.tagName = EnumUtils.camelCase(name()); }
/** * Constructor. */ DefaultFilterType() { this.jsonName = EnumUtils.enumJsonName(this); }
/** * Constructor. * * @param description Description of the job field */ DefaultJobField(String description) { this.serializedName = EnumUtils.camelCase(name()); this.description = description; }
/** * Constructor. */ DefaultDimensionSpecType() { this.jsonName = EnumUtils.enumJsonName(this); }
/** * Constructor. * * @param description Description of this field */ DefaultDimensionField(String description) { this.description = description; this.camelName = EnumUtils.camelCase(name()); }
/** * Constructor. */ TopNMetricType() { this.jsonName = EnumUtils.enumJsonName(this); }
/** * Constructor. * * @param apiName ApiName for the metric * @param supportedGrains Set of TimeGrains that this metric supports */ TestApiMetricName(String apiName, TimeGrain... supportedGrains) { // to camelCase this.apiName = (apiName == null ? EnumUtils.camelCase(this.name().substring(2)) : apiName); this.supportedGrains = Arrays.asList(supportedGrains); }
/** * Constructor. */ DefaultExtractionFunctionType() { this.jsonName = EnumUtils.enumJsonName(this); }
/** * Constructor. * * @param description Description of the dimension field */ TestDimensionField(String description) { this.description = description; this.camelName = EnumUtils.camelCase(name()); }
/** * Constructor. */ DefaultQueryType() { this.jsonName = EnumUtils.enumJsonName(this); }
/** * Constructor. * * @param description Human-consumable description of the field */ BardDimensionField(String description) { this.description = description; camelName = EnumUtils.camelCase(name()); }
/** * Constructor. */ DefaultDataSourceType() { this.jsonName = EnumUtils.enumJsonName(this); }
@Override public String asName() { return EnumUtils.camelCase(name()); } }
/** * Constructor. */ Ordering() { this.orderingType = EnumUtils.enumJsonName(this); }
/** * Constructor. * * @param apiName ApiName for the metric * @param supportedGrains Set of TimeGrains that this metric supports */ TestApiMetricName(String apiName, TimeGrain... supportedGrains) { // to camelCase this.apiName = (apiName == null ? EnumUtils.camelCase(this.name().substring(2)) : apiName); this.supportedGrains = Arrays.asList(supportedGrains); }
@Override public String asName() { return EnumUtils.camelCase(name()); } }
/** * Constructor. * * @param description Description of the dimension field */ TestDimensionField(String description) { this.description = description; this.camelName = EnumUtils.camelCase(name()); }