br.com.objectos.way.etc.MappingEmpty Maven / Gradle / Ivy
The newest version!
/*
* MappingEmpty.java criado em 31/12/2013
*
* Propriedade de Objectos Fábrica de Software LTDA.
* Reprodução parcial ou total proibida.
*/
package br.com.objectos.way.etc;
import java.util.List;
import com.google.common.collect.ImmutableList;
/**
* @author [email protected] (Marcio Endo)
*/
enum MappingEmpty implements Mapping {
INSTANCE;
@Override
public Mapping getMapping(String key) {
return MappingEmpty.INSTANCE;
}
@Override
public List getSequence(String key) {
return ImmutableList.of();
}
@Override
public String getString(String key) {
return "";
}
@Override
public boolean getBoolean(String key) {
return false;
}
@Override
public int getInt(String key) {
return 0;
}
@Override
public long getLong(String key) {
return 0;
}
@Override
public float getFloat(String key) {
return 0;
}
@Override
public double getDouble(String key) {
return 0;
}
@Override
public List loadSequence(String key, EtcLoader loader) {
return ImmutableList. of();
}
}