com.jn.langx.util.collection.buffer.ReadWriteBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of langx-java Show documentation
Show all versions of langx-java Show documentation
Java lang extensions for java6+, a supplement to , replacement of a Guava, commons-lang.
Core utilities, Collection utilities, IO utilities, Cache, Configuration library ...
package com.jn.langx.util.collection.buffer;
import com.jn.langx.annotation.Nullable;
import java.util.Collection;
import java.util.List;
public abstract class ReadWriteBuffer extends Buffer {
public ReadWriteBuffer(long mark, long pos, long lim, long cap) {
super(mark, pos, lim, cap);
}
/**
* @param e
* @return
* @since 3.3.1
*/
public abstract BF put(@Nullable E e);
/**
* @since 3.3.2
*/
public abstract BF put(E[] es);
/**
* @since 3.3.2
*/
public abstract BF put(Collection es);
/**
* @param index
* @param e
* @return
* @since 3.3.1
*/
public abstract BF put(long index, @Nullable E e);
/**
* @return
* @since 3.3.1
*/
public abstract E get();
/**
* @return
* @since 3.3.2
*/
public abstract E get(long index);
/**
* @param index 起始位置
* @param maxLength 最多获取数量,如果小于0 ,则从指定位置到limit
* @return
* @since 3.3.1
*/
public abstract List get(long index, long maxLength);
}