![JAR search and dependency download from the Maven repository](/logo.png)
com.github.fge.uritemplate.vars.specs.ExplodedVariable Maven / Gradle / Ivy
package com.github.fge.uritemplate.vars.specs;
/**
* A varspec with an explode modifier
*/
public final class ExplodedVariable
extends VariableSpec
{
public ExplodedVariable(final String name)
{
super(VariableSpecType.EXPLODED, name);
}
@Override
public boolean isExploded()
{
return true;
}
@Override
public int getPrefixLength()
{
return -1;
}
@Override
public int hashCode()
{
return name.hashCode();
}
@Override
public boolean equals(final Object obj)
{
if (obj == null)
return false;
if (this == obj)
return true;
if (getClass() != obj.getClass())
return false;
final ExplodedVariable other = (ExplodedVariable) obj;
return name.equals(other.name);
}
@Override
public String toString()
{
return name + " (exploded)";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy