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

org.unlaxer.jaddress.model.StringValue Maven / Gradle / Ivy

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