package speiger.src.collections.PACKAGE.lists; import java.util.ListIterator; import speiger.src.collections.PACKAGE.collections.BI_ITERATOR; /** * A Type Specific ListIterator that reduces boxing/unboxing * @Type(T) */ public interface LIST_ITERATOR KEY_GENERIC_TYPE extends ListIterator, BI_ITERATOR KEY_GENERIC_TYPE { #if !TYPE_OBJECT /** * A Primitive set function to reduce (un)boxing * @param e the element that should replace the last returned value * @see ListIterator#set(Object) */ public void set(KEY_TYPE e); /** * A Primitive set function to reduce (un)boxing * @param e the element that should be inserted before the last returned value * @see ListIterator#set(Object) */ public void add(KEY_TYPE e); /** {@inheritDoc} *

This default implementation delegates to the corresponding type-specific function. * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated public default CLASS_TYPE previous() { return BI_ITERATOR.super.previous(); } /** {@inheritDoc} *

This default implementation delegates to the corresponding type-specific function. * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated public default CLASS_TYPE next() { return BI_ITERATOR.super.next(); } /** {@inheritDoc} *

This default implementation delegates to the corresponding type-specific function. * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated public default void set(CLASS_TYPE e) { set(OBJ_TO_KEY(e)); } /** {@inheritDoc} *

This default implementation delegates to the corresponding type-specific function. * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated public default void add(CLASS_TYPE e) { add(OBJ_TO_KEY(e)); } #endif }