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

com.tangosol.coherence.jcache.common.ReferenceInternalConverter Maven / Gradle / Ivy

There is a newer version: 24.09.2
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.tangosol.coherence.jcache.common;

/**
 * An {@link InternalConverter} that simply returns a reference to the
 * provided value.
 *
 * @param   the type of values to convert
 *
 * @author bo  2013.11.24
 * @since Coherence 12.1.3
 */
public class ReferenceInternalConverter
        implements InternalConverter
    {
    // ----- InternalConverter interface ------------------------------------

    @Override
    public T fromInternal(Object value)
        {
        return (T) value;
        }

    @Override
    public Object toInternal(T value)
        {
        return value;
        }
    }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy