2 * Copyright (c) 2016 Cisco Systems, Inc. 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.controller.cluster.access.concepts;
10 import static com.google.common.base.Verify.verifyNotNull;
11 import static java.util.Objects.requireNonNull;
13 abstract class AbstractEnvelopeProxy<T extends Message<?, ?>, E extends Envelope<T>>
14 implements Envelope.SerialForm<T, E> {
16 private static final long serialVersionUID = 1L;
20 AbstractEnvelopeProxy() {
24 AbstractEnvelopeProxy(final E envelope) {
25 this.envelope = requireNonNull(envelope);
29 public final E envelope() {
30 return verifyNotNull(envelope);
34 public final void setEnvelope(final E envelope) {
35 this.envelope = requireNonNull(envelope);
39 public final Object readResolve() {