org.ow2.asmdex.structureWriter
Class TypeList

java.lang.Object
  extended by org.ow2.asmdex.structureWriter.TypeList
All Implemented Interfaces:
java.lang.Comparable<TypeList>

public class TypeList
extends java.lang.Object
implements java.lang.Comparable<TypeList>

Class representing the type_list structure of the Dex file. Consists in a list of type_ids, which are here represented as simple Strings.

Author:
Julien Névo.

Constructor Summary
TypeList(java.lang.String[] types)
          Constructor of a TypeList.
 
Method Summary
 int compareTo(TypeList o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String get(int index)
          Get a type from the list
 java.lang.String[] getTypeList()
          Gives back the list of types
 int hashCode()
           
 int size()
          Number of types in the list
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeList

public TypeList(java.lang.String[] types)
Constructor of a TypeList.

Parameters:
types - types to add to the TypeList. May be Null.
Method Detail

getTypeList

public java.lang.String[] getTypeList()
Gives back the list of types

Returns:
types formatted in Java format

size

public int size()
Number of types in the list

Returns:
number of types.

get

public java.lang.String get(int index)
Get a type from the list

Parameters:
index - position of the type
Returns:
the type as a string in Java format

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(TypeList o)
Specified by:
compareTo in interface java.lang.Comparable<TypeList>