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:
JesusFreke@JesusFreke.com 2010-08-17 13:28:57 +00:00
parent 4b72225e9d
commit 8ec2ab7602

View File

@ -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
*/