org.wildfly.clustering.marshalling.protostream.util.LinkedHashMapMarshaller Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.marshalling.protostream.util;
import java.io.IOException;
import java.util.AbstractMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import org.infinispan.protostream.descriptors.WireType;
import org.wildfly.clustering.marshalling.protostream.ProtoStreamReader;
import org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter;
/**
* Marshaller for a {@link LinkedHashMap}.
* @author Paul Ferraro
*/
public class LinkedHashMapMarshaller extends AbstractMapMarshaller> {
private static final int ACCESS_ORDER_INDEX = ENTRY_INDEX + 1;
private static final Function, Boolean> ACCESS_ORDER = new Function<>() {
@Override
public Boolean apply(LinkedHashMap