![JAR search and dependency download from the Maven repository](/logo.png)
io.imunity.vaadin.auth.services.layout.configuration.AuthnLayoutColumnConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-authentication Show documentation
Show all versions of unity-server-vaadin-authentication Show documentation
Vaadin login view and components
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.auth.services.layout.configuration;
import java.util.Collections;
import java.util.List;
import com.google.common.base.Objects;
import io.imunity.vaadin.auth.services.layout.configuration.elements.AuthnElementConfiguration;
import pl.edu.icm.unity.base.i18n.I18nString;
/**
* Stores information about authentication layout column configuration
*
* @author P.Piernik
*
*/
public class AuthnLayoutColumnConfiguration
{
public final I18nString title;
public final int width;
public final List contents;
public AuthnLayoutColumnConfiguration(I18nString title, int width, List contents)
{
this.title = title;
this.width = width;
this.contents = Collections.unmodifiableList(contents);
}
@Override
public int hashCode()
{
return Objects.hashCode(title, width, contents);
}
@Override
public boolean equals(Object obj)
{
if (this == obj)
return true;
if (getClass() != obj.getClass())
return false;
final AuthnLayoutColumnConfiguration other = (AuthnLayoutColumnConfiguration) obj;
return Objects.equal(this.title, other.title) && Objects.equal(this.width, other.width)
&& Objects.equal(this.contents, other.contents);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy