com.tangosol.internal.util.collection.PortableMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence Show documentation
Show all versions of coherence Show documentation
Oracle Coherence Community Edition
/*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package com.tangosol.internal.util.collection;
import com.tangosol.io.ExternalizableLite;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.io.pof.PortableObject;
import com.tangosol.util.ExternalizableHelper;
import com.tangosol.util.WrapperCollections;
import com.tangosol.util.function.Remote;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import jakarta.json.bind.annotation.JsonbProperty;
import java.util.Set;
/**
* A wrapper Map that controls wrapped map's serialization.
*
* @param the key type
* @param the value type
*
* @author as 2014.11.19
* @since 12.2.1
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class PortableMap
extends WrapperCollections.AbstractWrapperMap
implements PortableObject, ExternalizableLite
{
// ---- constructors ----------------------------------------------------
/**
* Construct RemoteMap instance which wraps an instance of a {@link HashMap}.
*/
public PortableMap()
{
}
/**
* Construct RemoteMap instance with a specified supplier.
*
* @param supplier a wrapped set supplier
*/
public PortableMap(Remote.Supplier