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

com.gc.iotools.fmt.base.FormatId Maven / Gradle / Ivy

The newest version!
package com.gc.iotools.fmt.base;

/*
 * Copyright (c) 2008,2013 Gabriele Contini. This source code is released
 * under the BSD License.
 */

public final class FormatId {

	public final FormatEnum format;

	public final String version;

	public FormatId(final FormatEnum format, final String version) {
		if (format == null) {
			throw new IllegalArgumentException("Format can't be null");
		}
		this.format = format;
		this.version = version;
	}

	@Override
	public String toString() {
		final String str = "Format:" + this.format.getName();
		return str
				+ (this.version == null ? "" : (",version:" + this.version));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy