com.hammingweight.hammock.mocks.util
Class MockVector
java.lang.Object
java.util.Vector
com.hammingweight.hammock.mocks.util.MockVector
- All Implemented Interfaces:
- IMockObject
public class MockVector
- extends java.util.Vector
- implements IMockObject
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Methods inherited from class java.util.Vector |
toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MTHD_ADD_ELEMENT_$_OBJECT
public static final MockMethod MTHD_ADD_ELEMENT_$_OBJECT
MTHD_CAPACITY
public static final MockMethod MTHD_CAPACITY
MTHD_CONTAINS_$_OBJECT
public static final MockMethod MTHD_CONTAINS_$_OBJECT
MTHD_COPY_INTO_$_ARRAY_OBJECT
public static final MockMethod MTHD_COPY_INTO_$_ARRAY_OBJECT
MTHD_ELEMENTS
public static final MockMethod MTHD_ELEMENTS
MTHD_ELEMENT_AT_$_INT
public static final MockMethod MTHD_ELEMENT_AT_$_INT
MTHD_ENSURE_CAPACITY_$_INT
public static final MockMethod MTHD_ENSURE_CAPACITY_$_INT
MTHD_FIRST_ELEMENT
public static final MockMethod MTHD_FIRST_ELEMENT
MTHD_INDEX_OF_$_OBJECT
public static final MockMethod MTHD_INDEX_OF_$_OBJECT
MTHD_INDEX_OF_$_OBJECT_INT
public static final MockMethod MTHD_INDEX_OF_$_OBJECT_INT
MTHD_INSERT_ELEMENT_AT_$_OBJECT_INT
public static final MockMethod MTHD_INSERT_ELEMENT_AT_$_OBJECT_INT
MTHD_IS_EMPTY
public static final MockMethod MTHD_IS_EMPTY
MTHD_LAST_ELEMENT
public static final MockMethod MTHD_LAST_ELEMENT
MTHD_LAST_INDEX_OF_$_OBJECT
public static final MockMethod MTHD_LAST_INDEX_OF_$_OBJECT
MTHD_LAST_INDEX_OF_$_OBJECT_INT
public static final MockMethod MTHD_LAST_INDEX_OF_$_OBJECT_INT
MTHD_REMOVE_ALL_ELEMENTS
public static final MockMethod MTHD_REMOVE_ALL_ELEMENTS
MTHD_REMOVE_ELEMENT_$_OBJECT
public static final MockMethod MTHD_REMOVE_ELEMENT_$_OBJECT
MTHD_REMOVE_ELEMENT_AT_$_INT
public static final MockMethod MTHD_REMOVE_ELEMENT_AT_$_INT
MTHD_SET_ELEMENT_AT_$_OBJECT_INT
public static final MockMethod MTHD_SET_ELEMENT_AT_$_OBJECT_INT
MTHD_SET_SIZE_$_INT
public static final MockMethod MTHD_SET_SIZE_$_INT
MTHD_SIZE
public static final MockMethod MTHD_SIZE
MTHD_TRIM_TO_SIZE
public static final MockMethod MTHD_TRIM_TO_SIZE
MockVector
public MockVector()
MockVector
public MockVector(IInvocationHandler handler)
MockVector
public MockVector(int arg0)
MockVector
public MockVector(int arg0,
IInvocationHandler handler)
MockVector
public MockVector(int arg0,
int arg1)
MockVector
public MockVector(int arg0,
int arg1,
IInvocationHandler handler)
setInvocationHandler
public final void setInvocationHandler(IInvocationHandler handler)
- Description copied from interface:
IMockObject
- Sets the invocation handler that the mock object should use to evaluate
method invocations.
- Specified by:
setInvocationHandler
in interface IMockObject
- Parameters:
handler
- The invocation handler to be used by the mock object.
getInvocationHandler
public final IInvocationHandler getInvocationHandler()
- Description copied from interface:
IMockObject
- Gets the invocation handler that the mock object uses to evaluate method
invocations.
- Specified by:
getInvocationHandler
in interface IMockObject
- Returns:
- The invocation handler used by the mock object.
addElement
public void addElement(java.lang.Object arg0)
- Overrides:
addElement
in class java.util.Vector
capacity
public int capacity()
- Overrides:
capacity
in class java.util.Vector
contains
public boolean contains(java.lang.Object arg0)
- Overrides:
contains
in class java.util.Vector
copyInto
public void copyInto(java.lang.Object[] arg0)
- Overrides:
copyInto
in class java.util.Vector
elements
public java.util.Enumeration elements()
- Overrides:
elements
in class java.util.Vector
elementAt
public java.lang.Object elementAt(int arg0)
- Overrides:
elementAt
in class java.util.Vector
ensureCapacity
public void ensureCapacity(int arg0)
- Overrides:
ensureCapacity
in class java.util.Vector
firstElement
public java.lang.Object firstElement()
- Overrides:
firstElement
in class java.util.Vector
indexOf
public int indexOf(java.lang.Object arg0)
- Overrides:
indexOf
in class java.util.Vector
indexOf
public int indexOf(java.lang.Object arg0,
int arg1)
- Overrides:
indexOf
in class java.util.Vector
insertElementAt
public void insertElementAt(java.lang.Object arg0,
int arg1)
- Overrides:
insertElementAt
in class java.util.Vector
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty
in class java.util.Vector
lastElement
public java.lang.Object lastElement()
- Overrides:
lastElement
in class java.util.Vector
lastIndexOf
public int lastIndexOf(java.lang.Object arg0)
- Overrides:
lastIndexOf
in class java.util.Vector
lastIndexOf
public int lastIndexOf(java.lang.Object arg0,
int arg1)
- Overrides:
lastIndexOf
in class java.util.Vector
removeAllElements
public void removeAllElements()
- Overrides:
removeAllElements
in class java.util.Vector
removeElement
public boolean removeElement(java.lang.Object arg0)
- Overrides:
removeElement
in class java.util.Vector
removeElementAt
public void removeElementAt(int arg0)
- Overrides:
removeElementAt
in class java.util.Vector
setElementAt
public void setElementAt(java.lang.Object arg0,
int arg1)
- Overrides:
setElementAt
in class java.util.Vector
setSize
public void setSize(int arg0)
- Overrides:
setSize
in class java.util.Vector
size
public int size()
- Overrides:
size
in class java.util.Vector
trimToSize
public void trimToSize()
- Overrides:
trimToSize
in class java.util.Vector