com.alexkasko.delta.DeltaIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of delta-common Show documentation
Show all versions of delta-common Show documentation
Common library for utilities and library for creating and applying binary
patches to file system directories.
package com.alexkasko.delta;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
/**
* User: alexkasko
* Date: 11/18/11
*/
class DeltaIndex {
final ImmutableList unchanged;
final ImmutableList created;
final ImmutableList updated;
final ImmutableList deleted;
DeltaIndex(ImmutableList created, ImmutableList deleted,
ImmutableList updated, ImmutableList unchanged) {
this.unchanged = unchanged;
this.created = created;
this.updated = updated;
this.deleted = deleted;
}
Iterable extends IndexEntry> getAll() {
return Iterables.concat(unchanged, created, updated, deleted);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy