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

org.vertexium.HistoricalPropertyValue Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium;

import java.io.Serializable;
import java.util.Set;

public class HistoricalPropertyValue implements Serializable, Comparable {
    static final long serialVersionUID = 42L;
    private final long timestamp;
    private final Object value;
    private final Metadata metadata;
    private Set hiddenVisibilities;

    public HistoricalPropertyValue(long timestamp, Object value, Metadata metadata, Set hiddenVisibilities) {
        this.timestamp = timestamp;
        this.value = value;
        this.metadata = metadata;
        this.hiddenVisibilities = hiddenVisibilities;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public Object getValue() {
        return value;
    }

    public Metadata getMetadata() {
        return metadata;
    }

    public Set getHiddenVisibilities() {
        return hiddenVisibilities;
    }

    @Override
    public int compareTo(HistoricalPropertyValue o) {
        return -Long.compare(getTimestamp(), o.getTimestamp());
    }

    @Override
    public String toString() {
        return "HistoricalPropertyValue{" +
                "timestamp=" + timestamp +
                ", value=" + value +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy