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

com.enonic.xp.blob.SegmentLevel Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.blob;

import java.util.Objects;

public final class SegmentLevel
{
    private final String value;

    SegmentLevel( final String value )
    {
        this.value = Objects.requireNonNull( value );
    }

    public static SegmentLevel from( final String value )
    {
        return new SegmentLevel( value );
    }

    public String getValue()
    {
        return value;
    }

    @Override
    public String toString()
    {
        return this.value;
    }

    @Override
    public boolean equals( final Object o )
    {
        return ( o instanceof SegmentLevel ) && this.value.equals( ( (SegmentLevel) o ).value );
    }

    @Override
    public int hashCode()
    {
        return value.hashCode();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy