Examples of PersistedFloat


Examples of org.terasology.persistence.typeHandling.inMemory.PersistedFloat

    @Override
    public PersistedData getArrayItem(int index) {
        if (data.getValueCount() > 0) {
            return new ProtobufPersistedData(data.getValue(index));
        } else if (data.getFloatCount() > 0) {
            return new PersistedFloat(data.getFloat(index));
        } else if (data.getIntegerCount() > 0) {
            return new PersistedInteger(data.getInteger(index));
        } else if (data.getDoubleCount() > 0) {
            return new PersistedDouble(data.getDouble(index));
        } else if (data.getBooleanCount() > 0) {
View Full Code Here

Examples of org.terasology.persistence.typeHandling.inMemory.PersistedFloat

            for (EntityData.Value val : data.getValueList()) {
                result.add(new ProtobufPersistedData(val));
            }
        } else if (data.getFloatCount() > 0) {
            for (int i = 0; i < data.getFloatCount(); ++i) {
                result.add(new PersistedFloat(data.getFloat(i)));
            }
        } else if (data.getIntegerCount() > 0) {
            for (int i = 0; i < data.getIntegerCount(); ++i) {
                result.add(new PersistedInteger(data.getInteger(i)));
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.