tech.pantheon.triemap.SerializationProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of triemap Show documentation
Show all versions of triemap Show documentation
Java implementation of a concurrent trie hash map from Scala collections library
/*
* (C) Copyright 2017 PANTHEON.tech, s.r.o. and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package tech.pantheon.triemap;
import static java.util.Objects.requireNonNull;
import java.io.Externalizable;
import java.io.IOException;
import java.io.InvalidObjectException;
import java.io.NotActiveException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.ObjectStreamException;
import java.io.StreamCorruptedException;
/**
* External serialization object for use with TrieMap objects. This hides the implementation details, such as object
* hierarchy. It also makes handling read-only snapshots more elegant.
*
* @author Robert Varga
*/
final class SerializationProxy implements Externalizable {
@java.io.Serial
private static final long serialVersionUID = 1L;
private transient TrieMap