mirror of
https://github.com/revanced/smali.git
synced 2025-05-23 18:16:23 +02:00
Add static helper method to TypeListItem
git-svn-id: https://smali.googlecode.com/svn/trunk@789 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
4b72225e9d
commit
8ec2ab7602
@ -224,6 +224,16 @@ public class TypeListItem extends Item<TypeListItem> {
|
||||
return new ReadOnlyArrayList<TypeIdItem>(typeList);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to allow easier "inline" retrieval of of the list of TypeIdItems
|
||||
* @param typeListItem the typeListItem to return the types of (can be null)
|
||||
* @return an array of the <code>TypeIdItems</code> in the specified <code>TypeListItem</code>, or null if the
|
||||
* TypeListItem is null
|
||||
*/
|
||||
public static List<TypeIdItem> getTypes(TypeListItem typeListItem) {
|
||||
return typeListItem==null?null:typeListItem.getTypes();
|
||||
}
|
||||
|
||||
/**
|
||||
* calculate and cache the hashcode
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user