/** * Returns current nanosecond time. */ final long now() { return Utils.nanoTime(); }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
/** * Returns current nanosecond time. */ final long now() { return Utils.nanoTime(); }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
/** * Returns current nanosecond time. */ final long now() { return Utils.nanoTime(); }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
private boolean attempt(long nanos) throws InterruptedException { if (state != 0) return true; if (nanos <= 0) { state = CANCEL; notify(); return false; } long deadline = Utils.nanoTime() + nanos; while (true) { TimeUnit.NANOSECONDS.timedWait(this, nanos); if (state != 0) return true; nanos = deadline - Utils.nanoTime(); if (nanos <= 0) { state = CANCEL; notify(); return false; } } }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
private boolean attempt(long nanos) throws InterruptedException { if (state != 0) return true; if (nanos <= 0) { state = CANCEL; notify(); return false; } long deadline = Utils.nanoTime() + nanos; while (true) { TimeUnit.NANOSECONDS.timedWait(this, nanos); if (state != 0) return true; nanos = deadline - Utils.nanoTime(); if (nanos <= 0) { state = CANCEL; notify(); return false; } } }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
private boolean attempt(long nanos) throws InterruptedException { if (state != 0) return true; if (nanos <= 0) { state = CANCEL; notify(); return false; } long deadline = Utils.nanoTime() + nanos; while (true) { TimeUnit.NANOSECONDS.timedWait(this, nanos); if (state != 0) return true; nanos = deadline - Utils.nanoTime(); if (nanos <= 0) { state = CANCEL; notify(); return false; } } }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
public Object[] toArray(Object[] a) { return Utils.collectionToArray(this, a); } }
public Object[] toArray() { return Utils.collectionToArray(this); }