Class Overview
Describes the source of some work that may be done by someone else.
Currently the public representation of what a work source is is not
defined; this is an opaque container.
Summary
Public Methods |
boolean
|
add(WorkSource other)
Merge the contents of other WorkSource in to this one.
|
void
|
clear()
Clear this WorkSource to be empty.
|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
boolean
|
diff(WorkSource other)
Compare this WorkSource with another.
|
boolean
|
remove(WorkSource other)
|
void
|
set(WorkSource other)
Replace the current contents of this work source with the given
work source.
|
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Called before the object's memory is reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
From interface android.os.Parcelable
abstract
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
abstract
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
|
|
Constants
Public Constructors
public
WorkSource
()
Create an empty work source.
public
WorkSource
(WorkSource orig)
Create a new WorkSource that is a copy of an existing one.
If orig is null, an empty WorkSource is created.
Public Methods
public
boolean
add
(WorkSource other)
Merge the contents of other WorkSource in to this one.
Parameters
other
| The other WorkSource whose contents are to be merged. |
Returns
- Returns true if any new sources were added.
public
void
clear
()
Clear this WorkSource to be empty.
public
int
describeContents
()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
Returns
- a bitmask indicating the set of special object types marshalled
by the Parcelable.
public
boolean
diff
(WorkSource other)
Compare this WorkSource with another.
Parameters
other
| The WorkSource to compare against. |
Returns
- If there is a difference, true is returned.
public
void
set
(WorkSource other)
Replace the current contents of this work source with the given
work source. If other is null, the current work source
will be made empty.
public
void
writeToParcel
(Parcel dest, int flags)
Flatten this object in to a Parcel.
Parameters
dest
| The Parcel in which the object should be written. |
flags
| Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|