public class RDotTxtEntry extends Object implements Comparable<RDotTxtEntry>
aapt
.Modifier and Type | Class and Description |
---|---|
static class |
RDotTxtEntry.CustomDrawableType |
static class |
RDotTxtEntry.IdType |
static class |
RDotTxtEntry.RType |
Modifier and Type | Field and Description |
---|---|
RDotTxtEntry.CustomDrawableType |
customType |
RDotTxtEntry.IdType |
idType |
String |
idValue |
static String |
INT_ARRAY_SEPARATOR |
String |
name |
String |
parent |
static java.util.function.Function<String,RDotTxtEntry> |
TO_ENTRY |
RDotTxtEntry.RType |
type |
Constructor and Description |
---|
RDotTxtEntry(RDotTxtEntry.IdType idType,
RDotTxtEntry.RType type,
String name,
String idValue) |
RDotTxtEntry(RDotTxtEntry.IdType idType,
RDotTxtEntry.RType type,
String name,
String idValue,
RDotTxtEntry.CustomDrawableType customType) |
RDotTxtEntry(RDotTxtEntry.IdType idType,
RDotTxtEntry.RType type,
String name,
String idValue,
RDotTxtEntry.CustomDrawableType customType,
String parent) |
RDotTxtEntry(RDotTxtEntry.IdType idType,
RDotTxtEntry.RType type,
String name,
String idValue,
String parent) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RDotTxtEntry that)
A collection of Resources should be sorted such that Resources of the same type should be
grouped together, and should be alphabetized within that group.
|
RDotTxtEntry |
copyWithNewIdValue(String newIdValue) |
RDotTxtEntry |
copyWithNewParent(String parent) |
boolean |
equals(Object obj) |
int |
hashCode() |
static Optional<RDotTxtEntry> |
parse(String rDotTxtLine) |
static List<RDotTxtEntry> |
readResources(ProjectFilesystem owningFilesystem,
Path rDotTxt)
Read resource IDs from a R.txt file and add them to a list of entries
|
String |
toString() |
public static final java.util.function.Function<String,RDotTxtEntry> TO_ENTRY
public static final String INT_ARRAY_SEPARATOR
public final RDotTxtEntry.IdType idType
public final RDotTxtEntry.RType type
public final String name
public final String idValue
public final String parent
public final RDotTxtEntry.CustomDrawableType customType
public RDotTxtEntry(RDotTxtEntry.IdType idType, RDotTxtEntry.RType type, String name, String idValue)
public RDotTxtEntry(RDotTxtEntry.IdType idType, RDotTxtEntry.RType type, String name, String idValue, @Nullable String parent)
public RDotTxtEntry(RDotTxtEntry.IdType idType, RDotTxtEntry.RType type, String name, String idValue, RDotTxtEntry.CustomDrawableType customType)
public RDotTxtEntry(RDotTxtEntry.IdType idType, RDotTxtEntry.RType type, String name, String idValue, RDotTxtEntry.CustomDrawableType customType, @Nullable String parent)
public RDotTxtEntry copyWithNewIdValue(String newIdValue)
public RDotTxtEntry copyWithNewParent(String parent)
public static Optional<RDotTxtEntry> parse(String rDotTxtLine)
public static List<RDotTxtEntry> readResources(ProjectFilesystem owningFilesystem, Path rDotTxt) throws IOException
owningFilesystem
- The project filesystem to userDotTxt
- the path to the R.txt file to readIOException
public int compareTo(RDotTxtEntry that)
compareTo
in interface Comparable<RDotTxtEntry>