List of usage examples for java.nio LongBuffer duplicate
public abstract LongBuffer duplicate();
From source file:Main.java
public static void main(String[] args) { LongBuffer longBuffer = LongBuffer.allocate(10); longBuffer.put(100);/*from www . ja v a2s. com*/ longBuffer.rewind(); LongBuffer longBuffer2 = longBuffer.duplicate(); System.out.println(longBuffer2.equals(longBuffer2)); }