com.github.gpluscb.ggjava.entity.object.response.scalars.IDResponse Maven / Gradle / Ivy
package com.github.gpluscb.ggjava.entity.object.response.scalars;
import com.github.gpluscb.ggjava.entity.EntityType;
import com.github.gpluscb.ggjava.entity.object.scalars.GGID;
import javax.annotation.Nonnull;
/**
* The ID
scalar type represents a unique identifier, often used to
* refetch an object or as key for a cache. The ID type appears in a JSON
* response as a String; however, it is not intended to be human-readable.
* When expected as an input type, any string (such as "4"
) or integer
* (such as 4
) input value will be accepted as an ID.
*/
public class IDResponse extends ScalarResponse implements GGID {
public IDResponse() {
super(EntityType.ID);
}
/**
* @throws IllegalArgumentException if value is null
*/
public IDResponse(@Nonnull String value) {
super(EntityType.ID, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy