public class

WorkSpec.WorkInfoPojo

extends java.lang.Object

 java.lang.Object

↳androidx.work.impl.model.WorkSpec.WorkInfoPojo

Overview

A POJO containing the ID, state, output, tags, and run attempt count of a WorkSpec.

Summary

Fields
public java.lang.Stringid

public Dataoutput

public java.util.List<Data>progress

public intrunAttemptCount

public WorkInfo.Statestate

public java.util.List<java.lang.String>tags

Constructors
publicWorkInfoPojo()

Methods
public booleanequals(java.lang.Object o)

public inthashCode()

public WorkInfotoWorkInfo()

Converts this POJO to a WorkInfo.

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public java.lang.String id

public WorkInfo.State state

public Data output

public int runAttemptCount

public java.util.List<java.lang.String> tags

public java.util.List<Data> progress

Constructors

public WorkInfoPojo()

Methods

public WorkInfo toWorkInfo()

Converts this POJO to a WorkInfo.

Returns:

The WorkInfo represented by this POJO

public boolean equals(java.lang.Object o)

public int hashCode()