org.unlaxer.jaddress.model.StringValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of japanese-address-parser Show documentation
Show all versions of japanese-address-parser Show documentation
a simplejapanese address parser
The newest version!
package org.unlaxer.jaddress.model;
import java.io.Serializable;
public class StringValue implements Comparable , Serializable , MinLength , MaxLength , Nullable{
private static final long serialVersionUID = 5145706711655155935L;
public final String value;
int hashCode;
public StringValue(String value) {
super();
if(value == null) {
throw new IllegalArgumentException("must be not null");
}
this.value = value;
hashCode = value.hashCode();
int length = value.length();
if(minLength() > length || maxLength() © 2015 - 2025 Weber Informatics LLC | Privacy Policy