Java Code Examples for org.immutables.value.Value#Default

The following examples show how to use org.immutables.value.Value#Default . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CloudApplicationExtended.java    From multiapps-controller with Apache License 2.0 4 votes vote down vote up
@Value.Default
default boolean shouldKeepExistingServiceBindings() {
    return false;
}
 
Example 2
Source File: AbstractGenruleDescription.java    From buck with Apache License 2.0 4 votes vote down vote up
@Value.Default
default SourceSet getSrcs() {
  return SourceSet.EMPTY;
}
 
Example 3
Source File: MediaSegment.java    From m3u8-parser with MIT License 4 votes vote down vote up
@Value.Default
default boolean discontinuity() {
    return false;
}
 
Example 4
Source File: ElasticsearchSetup.java    From immutables with Apache License 2.0 4 votes vote down vote up
@Value.Default
default int scrollSize() {
  return 1024;
}
 
Example 5
Source File: ProjectGeneratorOptions.java    From buck with Apache License 2.0 4 votes vote down vote up
/** Generate read-only project files */
@Value.Default
default boolean shouldGenerateReadOnlyFiles() {
  return false;
}
 
Example 6
Source File: CamelCatalogSpec.java    From camel-k-runtime with Apache License 2.0 4 votes vote down vote up
@Value.Default
default Map<String, CamelArtifact> getArtifacts() {
    return Collections.emptyMap();
}
 
Example 7
Source File: XCodeNativeTargetAttributes.java    From buck with Apache License 2.0 4 votes vote down vote up
@Value.Default
public boolean frameworkHeadersEnabled() {
  return false;
}
 
Example 8
Source File: GaugeConfig.java    From glowroot with Apache License 2.0 4 votes vote down vote up
@Value.Default
@JsonInclude(Include.NON_EMPTY)
public boolean counter() {
    return false;
}
 
Example 9
Source File: CxxConstructorArg.java    From buck with Apache License 2.0 4 votes vote down vote up
@Hint(isTargetGraphOnlyDep = true)
@Value.Default
default PatternMatchedCollection<ImmutableSortedSet<BuildTarget>> getPlatformDeps() {
  return PatternMatchedCollection.of();
}
 
Example 10
Source File: TestResults.java    From buck with Apache License 2.0 4 votes vote down vote up
@Value.Default
@Override
public int getTotalNumberOfTests() {
  return 0;
}
 
Example 11
Source File: MessageParams.java    From slack-client with Apache License 2.0 4 votes vote down vote up
@Value.Default
default List<Block> getBlocks() {
  return Collections.emptyList();
}
 
Example 12
Source File: CompilerParameters.java    From buck with Apache License 2.0 4 votes vote down vote up
@Value.Default
public AbiGenerationMode getAbiGenerationMode() {
  return AbiGenerationMode.CLASS;
}
 
Example 13
Source File: CentralStorageConfig.java    From glowroot with Apache License 2.0 4 votes vote down vote up
@Override
@Value.Default
public ImmutableList<Integer> rollupExpirationHours() {
    return DEFAULT_ROLLUP_EXPIRATION_HOURS;
}
 
Example 14
Source File: InstrumentationConfig.java    From glowroot with Apache License 2.0 4 votes vote down vote up
@Value.Default
@JsonInclude(Include.NON_EMPTY)
public String methodName() {
    return "";
}
 
Example 15
Source File: ApplePlatform.java    From buck with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("immutables")
@Value.Default
public ImmutableList<String> getArchitectures() {
  return ImmutableList.of("armv7", "arm64", "i386", "x86_64");
}
 
Example 16
Source File: OqlGenerator.java    From immutables with Apache License 2.0 4 votes vote down vote up
@Value.Default
boolean useBindVariables() {
  return true;
}
 
Example 17
Source File: AndroidGraphEnhancerArgs.java    From buck with Apache License 2.0 4 votes vote down vote up
@Value.Default
default boolean isSkipProguard() {
  return false;
}
 
Example 18
Source File: TransactionConfig.java    From glowroot with Apache License 2.0 4 votes vote down vote up
@Value.Default
// do not use @JsonInclude NON_EMPTY
// need to always write this value to config.json since default value is true
public boolean captureThreadStats() {
    return true;
}
 
Example 19
Source File: ObjectMeta.java    From camel-k-runtime with Apache License 2.0 4 votes vote down vote up
@Value.Default
default Map<String, String> getLabels() {
    return Collections.emptyMap();
}
 
Example 20
Source File: ClientSideSlbConfig.java    From buck with Apache License 2.0 4 votes vote down vote up
@Value.Default
public int getHealthCheckIntervalMillis() {
  return HEALTH_CHECK_INTERVAL_MILLIS;
}