package net.sf.kerner.utils;

import java.util.Arrays;
import java.util.Iterator;

public class ObjectPairSame<T> extends ObjectPair<T, T> implements Iterable<T> {

    public ObjectPairSame() {
        super();
    }

    public ObjectPairSame(final T first, final T second) {
        super(first, second);

    }

    public ObjectPairSame<T> invert() {
        return new ObjectPairSame<T>(getSecond(), getFirst());
    }

    @SuppressWarnings("unchecked")
    public Iterator<T> iterator() {
        return Arrays.asList(getFirst(), getSecond()).iterator();
    }

}

@@ -74,16 +74,39 @@
 terator;
+%0Aimport java.util.List;
 %0A%0Apublic
@@ -324,32 +324,159 @@
 econd);%0A%0A    %7D%0A%0A
+    @SuppressWarnings(%22unchecked%22)%0A    public List%3CT%3E asList() %7B%0A        return Arrays.asList(getFirst(), getSecond());%0A    %7D%0A%0A
     public Objec
@@ -573,43 +573,8 @@
  %7D%0A%0A
-    @SuppressWarnings(%22unchecked%22)%0A
     
@@ -624,45 +624,15 @@
 urn 
-Arrays.asList(getFirst(), getSecond()
+asList(
 ).it

Introduce ObjectPairSame#asList().