com.github.jasminb.jsonapi.ResourceIdHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsonapi-converter Show documentation
Show all versions of jsonapi-converter Show documentation
JSONAPI-Converter is a library that provides means for integrating with services using JSON API specification.
package com.github.jasminb.jsonapi;
/**
* Resource identifier handler.
*
*
* Provides users with ability to use custom types as resource identifier objects.
*
*
* @author jbegic
*/
public interface ResourceIdHandler {
/**
* Convert identifier to {@link String}.
*
* @param identifier to convert
* @return {@link String} identifier string representation
*/
String asString(Object identifier);
/**
* Create identifier object by consuming its string representation.
*
* @param source {@link String} identifier
* @return target object
*/
Object fromString(String source);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy