com.octo.android.robospice.priority
Class PriorityFuture<T>
java.lang.Object
java.util.concurrent.FutureTask<T>
com.octo.android.robospice.priority.PriorityFuture<T>
- Type Parameters:
T
- the type of the future's return.
- All Implemented Interfaces:
- Comparable<PriorityFuture<T>>, Runnable, Future<T>, RunnableFuture<T>
public class PriorityFuture<T>
- extends FutureTask<T>
- implements Comparable<PriorityFuture<T>>
A future with priority, from SOF
- Author:
- SNI
PriorityFuture
public PriorityFuture(Runnable other,
int priority,
T result)
getPriority
public int getPriority()
compareTo
public int compareTo(PriorityFuture<T> other)
- Specified by:
compareTo
in interface Comparable<PriorityFuture<T>>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2012-2014. All Rights Reserved.