public final class DiffableUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
DiffableUtils.KeyedReader<T>
A reader that can deserialize an object.
|
static class |
DiffableUtils.PrototypeReader<T extends Diffable<T>>
Implementation of the KeyedReader that is using a prototype object for reading operations
Note: this implementation is ignoring the key.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Diffable<T>> |
diff(com.google.common.collect.ImmutableMap<String,T> before,
com.google.common.collect.ImmutableMap<String,T> after)
Calculates diff between two ImmutableMaps of Diffable objects
|
static <T extends Diffable<T>> |
diff(ImmutableOpenMap<String,T> before,
ImmutableOpenMap<String,T> after)
Calculates diff between two ImmutableOpenMaps of Diffable objects
|
static <T extends Diffable<T>> |
readImmutableMapDiff(StreamInput in,
DiffableUtils.KeyedReader<T> keyedReader)
Loads an object that represents difference between two ImmutableMaps
|
static <T extends Diffable<T>> |
readImmutableMapDiff(StreamInput in,
T proto)
Loads an object that represents difference between two ImmutableMaps
|
static <T extends Diffable<T>> |
readImmutableOpenMapDiff(StreamInput in,
DiffableUtils.KeyedReader<T> keyedReader)
Loads an object that represents difference between two ImmutableOpenMaps
|
static <T extends Diffable<T>> |
readImmutableOpenMapDiff(StreamInput in,
T proto)
Loads an object that represents difference between two ImmutableOpenMaps
|
public static <T extends Diffable<T>> Diff<ImmutableOpenMap<String,T>> diff(ImmutableOpenMap<String,T> before, ImmutableOpenMap<String,T> after)
public static <T extends Diffable<T>> Diff<com.google.common.collect.ImmutableMap<String,T>> diff(com.google.common.collect.ImmutableMap<String,T> before, com.google.common.collect.ImmutableMap<String,T> after)
public static <T extends Diffable<T>> Diff<ImmutableOpenMap<String,T>> readImmutableOpenMapDiff(StreamInput in, DiffableUtils.KeyedReader<T> keyedReader) throws IOException
IOException
public static <T extends Diffable<T>> Diff<com.google.common.collect.ImmutableMap<String,T>> readImmutableMapDiff(StreamInput in, DiffableUtils.KeyedReader<T> keyedReader) throws IOException
IOException
public static <T extends Diffable<T>> Diff<ImmutableOpenMap<String,T>> readImmutableOpenMapDiff(StreamInput in, T proto) throws IOException
IOException
public static <T extends Diffable<T>> Diff<com.google.common.collect.ImmutableMap<String,T>> readImmutableMapDiff(StreamInput in, T proto) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.