All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alexkasko.delta.DeltaIndex Maven / Gradle / Ivy

Go to download

Common library for utilities and library for creating and applying binary patches to file system directories.

There is a newer version: 1.1.3
Show newest version
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 getAll() {
        return Iterables.concat(unchanged, created, updated, deleted);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy