All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Alachisoft.NCache.Common.DataStructures.EnumerationDataChunk Maven / Gradle / Ivy

package Alachisoft.NCache.Common.DataStructures;


import com.alachisoft.ncache.serialization.core.io.ICompactSerializable;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectInput;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectOutput;

import java.io.IOException;

public class EnumerationDataChunk implements ICompactSerializable {
    private java.util.ArrayList _data;
    private EnumerationPointer _pointer;

    public final java.util.ArrayList getData() {
        return _data;
    }

    public final void setData(java.util.ArrayList value) {
        _data = value;
    }

    public final EnumerationPointer getPointer() {
        return _pointer;
    }

    public final void setPointer(EnumerationPointer value) {
        _pointer = value;
    }

    public final boolean isLastChunk() {
        return _pointer.getHasFinished();
    }

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
    ///#region ICompactSerializable Members

    public void deserialize(NCacheObjectInput reader) throws IOException, ClassNotFoundException {
        _data = (java.util.ArrayList) reader.readObject();
        _pointer = (EnumerationPointer) reader.readObject();
    }

    public void serialize(NCacheObjectOutput writer) throws IOException {
        writer.writeObject(_data);
        writer.writeObject(_pointer);
    }

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
    ///#endregion


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy