Flags { public static UnboundDoubleFlag defineDoubleFlag(String flagId, double defaultValue, String description, String modificationEffect, FetchVector.Dimension... dimensions) { return define(UnboundDoubleFlag::new, flagId, defaultValue, description, modificationEffect, dimensions); }  static UnboundBooleanFlag defineFeatureFlag(String flagId, boolean defaultValue, String description,
                                                       String modificationEffect, FetchVector.Dimension... dimensions); static UnboundStringFlag defineStringFlag(String flagId, String defaultValue, String description,
                                                     String modificationEffect, FetchVector.Dimension... dimensions); static UnboundIntFlag defineIntFlag(String flagId, int defaultValue, String description,
                                               String modificationEffect, FetchVector.Dimension... dimensions); static UnboundLongFlag defineLongFlag(String flagId, long defaultValue, String description,
                                                 String modificationEffect, FetchVector.Dimension... dimensions); static UnboundDoubleFlag defineDoubleFlag(String flagId, double defaultValue, String description,
                                                     String modificationEffect, FetchVector.Dimension... dimensions); static UnboundJacksonFlag<T> defineJacksonFlag(String flagId, T defaultValue, Class<T> jacksonClass, String description,
                                                              String modificationEffect, FetchVector.Dimension... dimensions); static UnboundListFlag<T> defineListFlag(String flagId, List<T> defaultValue, Class<T> elementClass,
                                                        String description, String modificationEffect, FetchVector.Dimension... dimensions); static List<FlagDefinition> getAllFlags(); static Optional<FlagDefinition> getFlag(FlagId flagId); static Replacer clearFlagsForTesting(); static final UnboundIntFlag DROP_CACHES; static final UnboundBooleanFlag FLEET_CANARY; static final UnboundListFlag<String> DISABLED_HOST_ADMIN_TASKS; static final UnboundStringFlag DOCKER_VERSION; static final UnboundLongFlag THIN_POOL_GB; static final UnboundDoubleFlag CONTAINER_CPU_CAP; static final UnboundIntFlag REBOOT_INTERVAL_IN_DAYS; static final UnboundBooleanFlag RETIRE_WITH_PERMANENTLY_DOWN; static final UnboundListFlag<HostCapacity> TARGET_CAPACITY; static final UnboundListFlag<String> INACTIVE_MAINTENANCE_JOBS; static final UnboundDoubleFlag DEFAULT_TERM_WISE_LIMIT; static final UnboundDoubleFlag DEFAULT_THREADPOOL_SIZE_FACTOR; static final UnboundDoubleFlag DEFAULT_QUEUE_SIZE_FACTOR; static final UnboundStringFlag JVM_GC_OPTIONS; static final UnboundStringFlag FEED_SEQUENCER_TYPE; static final UnboundStringFlag RESPONSE_SEQUENCER_TYPE; static final UnboundIntFlag RESPONSE_NUM_THREADS; static final UnboundBooleanFlag SKIP_COMMUNICATIONMANAGER_THREAD; static final UnboundBooleanFlag SKIP_MBUS_REQUEST_THREAD; static final UnboundBooleanFlag SKIP_MBUS_REPLY_THREAD; static final UnboundBooleanFlag USE_CONTENT_NODE_BTREE_DB; static final UnboundBooleanFlag USE_THREE_PHASE_UPDATES; static final UnboundStringFlag TLS_COMPRESSION_TYPE; static final UnboundBooleanFlag TLS_USE_FSYNC; static final UnboundDoubleFlag VISIBILITY_DELAY; static final UnboundBooleanFlag USE_DIRECT_STORAGE_API_RPC; static final UnboundBooleanFlag HOST_HARDENING; static final UnboundBooleanFlag TCP_ABORT_ON_OVERFLOW; static final UnboundStringFlag ZOOKEEPER_SERVER_VERSION; static final UnboundStringFlag TLS_FOR_ZOOKEEPER_CLIENT_SERVER_COMMUNICATION; static final UnboundBooleanFlag USE_TLS_FOR_ZOOKEEPER_CLIENT; static final UnboundBooleanFlag ENABLE_DISK_WRITE_TEST; static final UnboundBooleanFlag USE_REFRESHED_ENDPOINT_CERTIFICATE; static final UnboundBooleanFlag VALIDATE_ENDPOINT_CERTIFICATES; static final UnboundStringFlag ENDPOINT_CERTIFICATE_BACKFILL; static final UnboundBooleanFlag USE_ALTERNATIVE_ENDPOINT_CERTIFICATE_PROVIDER; static final UnboundStringFlag DOCKER_IMAGE_REPO; static final UnboundBooleanFlag ENDPOINT_CERT_IN_SHARED_ROUTING; static final UnboundBooleanFlag USE_CLOUD_INIT_FORMAT; static final UnboundBooleanFlag PROVISION_APPLICATION_ROLES; static final UnboundBooleanFlag APPLICATION_IAM_ROLE; static final UnboundBooleanFlag ENABLE_PUBLIC_SIGNUP_FLOW; static final UnboundBooleanFlag CONTROLLER_PROVISION_LB; static final UnboundIntFlag TENANT_NODE_QUOTA; static final UnboundIntFlag TENANT_BUDGET_QUOTA; static final UnboundBooleanFlag ONLY_PUBLIC_ACCESS; static final UnboundListFlag<String> OUTBOUND_BLOCKED_IPV4; static final UnboundListFlag<String> OUTBOUND_BLOCKED_IPV6; static final UnboundDoubleFlag FEED_CORE_THREAD_POOL_SIZE_FACTOR; static final UnboundBooleanFlag HIDE_SHARED_ROUTING_ENDPOINT; static final UnboundBooleanFlag USE_CONFIG_SERVER_VIP; static final UnboundBooleanFlag SKIP_MAINTENANCE_DEPLOYMENT; static final UnboundBooleanFlag DEPLOY_WITH_INTERNAL_RESTART; static final UnboundBooleanFlag USE_NEW_RESTAPI_HANDLER; }
@Test public void testDouble() { testGeneric(Flags.defineDoubleFlag("double-id", 3.142, "desc", "mod"), 2.718); }