package com.atlassian.bitbucket.internal.scm.git.lfs.model;

import javax.annotation.Nonnull;

import static java.util.Objects.requireNonNull;

/**
 * Base LFS object metadata.
 */
public class BaseObject {

    private final String oid;
    private final long size;

    public BaseObject(@Nonnull String oid, long size) {
        this.oid = requireNonNull(oid, "oid");
        this.size = size;
    }

    @Nonnull
    public String getOid() {
        return oid;
    }

    public long getSize() {
        return size;
    }
}
