Examples of PersistedString


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

        } else if (data.getBooleanCount() > 0) {
            return new PersistedBoolean(data.getBoolean(index));
        } else if (data.getLongCount() > 0) {
            return new PersistedLong(data.getLong(index));
        } else if (data.getStringCount() > 0) {
            return new PersistedString(data.getString(index));
        } else if (data.hasBytes()) {
            throw new IllegalStateException("Data is not an array");
        }
        throw new IndexOutOfBoundsException(index + " exceeds size of array data");
    }
View Full Code Here

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

            for (int i = 0; i < data.getLongCount(); ++i) {
                result.add(new PersistedLong(data.getLong(i)));
            }
        } else if (data.getStringCount() > 0) {
            for (int i = 0; i < data.getStringCount(); ++i) {
                result.add(new PersistedString(data.getString(i)));
            }
        } else if (data.hasBytes()) {
            throw new IllegalStateException("Data is not an array");
        }
        return result;
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.