io.github.mmm.marshall.id.impl.StructuredIdMappingEmpty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-marshall Show documentation
Show all versions of mmm-marshall Show documentation
API for marshalling and unmarshalling data.
The newest version!
package io.github.mmm.marshall.id.impl;
import io.github.mmm.marshall.id.StructuredIdMapping;
/**
* Default implementation of {@link StructuredIdMapping}.
*/
public final class StructuredIdMappingEmpty implements StructuredIdMapping {
private static final StructuredIdMappingEmpty INSTANCE = new StructuredIdMappingEmpty();
private StructuredIdMappingEmpty() {
super();
}
@Override
public String name(int id) {
return null;
}
@Override
public int id(String name) {
return 0;
}
/**
* @return the singleton instance.
*/
public static StructuredIdMappingEmpty get() {
return INSTANCE;
}
}