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

io.imunity.scim.console.AttributeEditorData Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
/*
 * Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */

package io.imunity.scim.console;

import java.util.List;
import java.util.Collections;

class AttributeEditorData
{
	final List attributeTypes;
	final List identityTypes;

	private AttributeEditorData(Builder builder)
	{
		this.attributeTypes = List.copyOf(builder.attributeTypes);
		this.identityTypes = List.copyOf(builder.identityTypes);
	}

	static Builder builder()
	{
		return new Builder();
	}

	static final class Builder
	{
		private List attributeTypes = Collections.emptyList();
		private List identityTypes = Collections.emptyList();

		private Builder()
		{
		}

		Builder withAttributeTypes(List attributeTypes)
		{
			this.attributeTypes = attributeTypes;
			return this;
		}

		Builder withIdentityTypes(List identityTypes)
		{
			this.identityTypes = identityTypes;
			return this;
		}

		AttributeEditorData build()
		{
			return new AttributeEditorData(this);
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy