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

io.sphere.sdk.models.ResourceViewImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.models;

import java.time.ZonedDateTime;

public class ResourceViewImpl extends Base implements ResourceView {
    private final String id;
    private final Long version;
    private final ZonedDateTime createdAt;
    private final ZonedDateTime lastModifiedAt;

    public ResourceViewImpl(final String id, final Long version, final ZonedDateTime createdAt, final ZonedDateTime lastModifiedAt) {
        this.id = id;
        this.version = version;
        this.createdAt = createdAt;
        this.lastModifiedAt = lastModifiedAt;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public Long getVersion() {
        return version;
    }

    @Override
    public ZonedDateTime getCreatedAt() {
        return createdAt;
    }

    @Override
    public ZonedDateTime getLastModifiedAt() {
        return lastModifiedAt;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy