arez.persist.runtime.IdentityConverter Maven / Gradle / Ivy
package arez.persist.runtime;
import javax.annotation.Nonnull;
final class IdentityConverter
implements Converter
{
/**
* Return the converter that performs no conversions.
*
* @param the type of the value.
* @return the converter.
*/
@SuppressWarnings( "unchecked" )
static Converter instance()
{
return (Converter) Holder.CONVERTER;
}
// Holder class to avoid on instance calls
static final class Holder
{
@Nonnull
static final IdentityConverter
© 2015 - 2024 Weber Informatics LLC | Privacy Policy