Class ImmutableIncrementalCache
java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.incremental.ImmutableIncrementalCache
- All Implemented Interfaces:
IncrementalCache
@Generated("org.immutables.processor.ProxyProcessor")
final class ImmutableIncrementalCache
extends Object
implements IncrementalCache
Immutable implementation of
IncrementalCache
.
Use the builder to create immutable instances:
ImmutableIncrementalCache.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableIncrementalCache
. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableIncrementalCache
.private static <K,
V> Map <K, V> createUnmodifiableMap
(boolean checkNulls, boolean skipNulls, Map<? extends K, ? extends V> map) boolean
This instance is equal to all instances ofImmutableIncrementalCache
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableIncrementalCache another) int
hashCode()
Computes a hash code from attributes:dependencies
,sources
.toString()
Prints the immutable valueIncrementalCache
with attribute values.
-
Field Details
-
dependencies
-
sources
-
-
Constructor Details
-
ImmutableIncrementalCache
-
-
Method Details
-
getDependencies
- Specified by:
getDependencies
in interfaceIncrementalCache
- Returns:
- The value of the
dependencies
attribute
-
getSources
- Specified by:
getSources
in interfaceIncrementalCache
- Returns:
- The value of the
sources
attribute
-
equals
-
equalTo
-
hashCode
-
toString
-
builder
Creates a builder forImmutableIncrementalCache
.ImmutableIncrementalCache.builder() .putDependencies|putAllDependencies(java.nio.file.Path => String) //
dependencies
mappings .putSources|putAllSources(java.nio.file.Path => String) //sources
mappings .build();- Returns:
- A new ImmutableIncrementalCache builder
-
createUnmodifiableMap
-