io.github.spair.byond.dmi.DmiDiff Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of byond-dmi-util Show documentation
Show all versions of byond-dmi-util Show documentation
Small set of util classes to work with BYOND dmi files.
package io.github.spair.byond.dmi;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;
import java.util.Objects;
@Data
@Setter(AccessLevel.PACKAGE)
@SuppressWarnings("WeakerAccess")
public class DmiDiff {
@Nullable private DmiMeta oldMeta;
@Nullable private DmiMeta newMeta;
@Nonnull private List diffs;
DmiDiff(@Nonnull final List diffs) {
this.diffs = diffs;
}
/**
* Shows that current diff was generated from the same Dmi's.
* @return true, if Dmi's was the same, otherwise false
*/
public boolean isSame() {
return Objects.equals(oldMeta, newMeta) && diffs.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy