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

com.github.jasminb.jsonapi.ResourceIdHandler Maven / Gradle / Ivy

Go to download

JSONAPI-Converter is a library that provides means for integrating with services using JSON API specification.

There is a newer version: 0.14
Show newest version
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