001: package test;
002:
003: import java.util.AbstractList;
004: import java.util.AbstractMap;
005: import java.util.Map.Entry;
006: import java.util.Set;
007:
008: public class MarkCorrespondingMethods1 extends AbstractList<String>
009: implements CharSequence {
010:
011: public MarkCorrespondingMethods1() {
012: }
013:
014: public String get(int arg0) {
015: throw new UnsupportedOperationException("Not supported yet.");
016: }
017:
018: public int size() {
019: throw new UnsupportedOperationException("Not supported yet.");
020: }
021:
022: @Override
023: public boolean add(String arg0) {
024: return super .add(arg0);
025: }
026:
027: public boolean add(Object o) {
028: throw new UnsupportedOperationException("Not supported yet.");
029: }
030:
031: public int length() {
032: throw new UnsupportedOperationException("Not supported yet.");
033: }
034:
035: public char charAt(int arg0) {
036: throw new UnsupportedOperationException("Not supported yet.");
037: }
038:
039: public CharSequence subSequence(int arg0, int arg1) {
040: throw new UnsupportedOperationException("Not supported yet.");
041: }
042:
043: public static class Inner extends AbstractList<String> implements
044: CharSequence {
045:
046: public String get(int arg0) {
047: throw new UnsupportedOperationException(
048: "Not supported yet.");
049: }
050:
051: public int size() {
052: throw new UnsupportedOperationException(
053: "Not supported yet.");
054: }
055:
056: @Override
057: public boolean add(String arg0) {
058: return super .add(arg0);
059: }
060:
061: public boolean add(Object o) {
062: throw new UnsupportedOperationException(
063: "Not supported yet.");
064: }
065:
066: public int length() {
067: throw new UnsupportedOperationException(
068: "Not supported yet.");
069: }
070:
071: public char charAt(int arg0) {
072: throw new UnsupportedOperationException(
073: "Not supported yet.");
074: }
075:
076: public CharSequence subSequence(int arg0, int arg1) {
077: throw new UnsupportedOperationException(
078: "Not supported yet.");
079: }
080:
081: }
082:
083: public static class Map extends AbstractMap<String, String>
084: implements Runnable, CharSequence {
085:
086: public Set<Entry<String, String>> entrySet() {
087: throw new UnsupportedOperationException(
088: "Not supported yet.");
089: }
090:
091: public void run() {
092: throw new UnsupportedOperationException(
093: "Not supported yet.");
094: }
095:
096: public int length() {
097: throw new UnsupportedOperationException(
098: "Not supported yet.");
099: }
100:
101: public char charAt(int arg0) {
102: throw new UnsupportedOperationException(
103: "Not supported yet.");
104: }
105:
106: public CharSequence subSequence(int arg0, int arg1) {
107: throw new UnsupportedOperationException(
108: "Not supported yet.");
109: }
110:
111: }
112:
113: public static abstract class X implements CharSequence {
114: public @Override
115: int hashCode() {
116: return 0;
117: }
118: }
119:
120: public static interface Int {
121: public int hashCode();
122: }
123:
124: public static class Y implements Int {
125: @Override
126: public int hashCode() {
127: return super.hashCode();
128: }
129: }
130:
131: }
|