Class ColorPool
- java.lang.Object
-
- com.google.javascript.jscomp.serialization.ColorPool
-
public final class ColorPool extends java.lang.ObjectA set ofColors reconstructed from possibly manyTypePoolprotos.Protos representing the same Color are reconciled while the pool is built. Reconciliation ensures that, within a pool, each ColorId corresponds to at most one Color.
It's possible for two Color objects with the same ID to have different definitions between different ColorPools, but mixing multiple ColorPools is likely a design error.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColorPool.BuilderCollectsTypePools and other data intoColorPool.ShardViews and then reconciles them into a singleColorPool.static classColorPool.ShardViewA view of the pool based on one of the input shards.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorPool.Builderbuilder()ColorgetColor(ColorId id)ColorRegistrygetRegistry()
-
-
-
Method Detail
-
getRegistry
public ColorRegistry getRegistry()
-
builder
public static ColorPool.Builder builder()
-
-