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

io.deephaven.ssl.config.IdentityList Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
/**
 * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
 */
package io.deephaven.ssl.config;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.deephaven.annotations.BuildableStyle;
import org.immutables.value.Value.Immutable;

import java.util.List;

/**
 * An identity materials list.
 */
@Immutable
@BuildableStyle
@JsonDeserialize(as = ImmutableIdentityList.class)
public abstract class IdentityList implements Identity {

    public static IdentityList of(Identity... identities) {
        return ImmutableIdentityList.builder().addValues(identities).build();
    }

    public static IdentityList of(List identities) {
        return ImmutableIdentityList.builder().addAllValues(identities).build();
    }

    public abstract List values();

    @Override
    public final , T> T walk(V visitor) {
        return visitor.visit(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy