
com.gc.iotools.fmt.base.FormatId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wazformat Show documentation
Show all versions of wazformat Show documentation
Format identification utilities
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