001 002package com.commercetools.api.models; 003 004/** 005 * Interface of a resource with an ID and version 006 * @param <T> the type of the underlying model, like category or product. 007 */ 008public interface DomainResource<T extends DomainResource<T>> extends Identifiable<T>, Versioned<T> { 009 public String getId(); 010 011 public Long getVersion(); 012 013 default T get() { 014 return (T) this; 015 } 016}