private abstract static class WeakPriorityBlockingQueue.AbstractElement<E> extends java.lang.Object implements WeakPriorityBlockingQueue.Element<E>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
E |
element |
private static long |
serialVersionUID |
long |
weight |
Modifier | Constructor and Description |
---|---|
private |
WeakPriorityBlockingQueue.AbstractElement() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(WeakPriorityBlockingQueue.Element<E> o) |
E |
getElement() |
long |
getWeight() |
int |
hashCode() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
compare, compareTo
private static final long serialVersionUID
public long weight
public E element
private WeakPriorityBlockingQueue.AbstractElement()
public long getWeight()
getWeight
in interface WeakPriorityBlockingQueue.Element<E>
public E getElement()
getElement
in interface WeakPriorityBlockingQueue.Element<E>
public boolean equals(WeakPriorityBlockingQueue.Element<E> o)
equals
in interface WeakPriorityBlockingQueue.Element<E>
public int hashCode()
hashCode
in interface WeakPriorityBlockingQueue.Element<E>
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface WeakPriorityBlockingQueue.Element<E>
toString
in class java.lang.Object