Back to project page RZAndroidBaseUtils.
The source code is released under:
MIT License
If you think the Android project RZAndroidBaseUtils listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.raizlabs.concurrent; /*from w w w . j av a 2s . co m*/ /** * Simple base class implementation for a {@link PrioritizedRunnable}. * * @author Dylan James */ public abstract class BasePrioritizedRunnable implements PrioritizedRunnable { private int priority; /** * {@inheritDoc} */ public int getPriority() { return priority; } /** * Sets the priority of this object. * @param priority The priority to set. */ public void setPriority(int priority) { this.priority = priority; } /** * Creates a {@link BasePrioritizedRunnable} with default priority. */ public BasePrioritizedRunnable() { this(Priority.NORMAL); } /** * Creates a {@link BasePrioritizedRunnable} with the given priority. * @param priority The priority to set for this {@link BasePrioritizedRunnable}. */ public BasePrioritizedRunnable(int priority) { setPriority(priority); } }