All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.clustering.session.cache.attributes.AbstractSessionAttributes Maven / Gradle / Ivy

There is a newer version: 4.0.0.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.session.cache.attributes;

import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Set;

/**
 * @author Paul Ferraro
 */
public abstract class AbstractSessionAttributes implements SessionAttributes {

	private final Map attributes;

	protected AbstractSessionAttributes(Map attributes) {
		this.attributes = Collections.unmodifiableMap(attributes);
	}

	@Override
	public Set keySet() {
		return this.attributes.keySet();
	}

	@Override
	public Collection values() {
		return this.attributes.values();
	}

	@Override
	public Set> entrySet() {
		return this.attributes.entrySet();
	}
}