2 * Copyright (c) 2022 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.util;
10 import com.google.common.collect.ImmutableList;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.util.ImmutableOffsetMap.Ordered;
15 * Serialization proxy for {@link Ordered}.
17 final class OIOMv1 extends IOMv1<Ordered<?, ?>> {
18 private static final long serialVersionUID = 1;
20 @SuppressWarnings("checkstyle:RedundantModifier")
25 OIOMv1(final @NonNull Ordered<?, ?> map) {
30 Ordered<?, ?> readReplace(final ImmutableList<Object> keys, final Object[] values) {
31 return new Ordered<>(OffsetMapCache.orderedOffsets(keys), values);