@Override protected int delegateSize() {
return [[#variable14684640]]().size();
}
@Override protected Object[] delegateToArray() {
int size = delegateSize();
Object[] result = new Object[size];
int index = 0;
for (EGenericType eGenericType: [[#variable14684640]]()) {
result[index++ ] = unwrap(eGenericType);
}
return result;
}
@Override protected <T>T[] delegateToArray(T[] array) {
int size = delegateSize();
if (array.length < size) {
@SuppressWarnings("unchecked")T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), size);
array = newArray;
}
if (array.length > size) {
array[size] = null;
}
int index = 0;
for (EGenericType eGenericType: [[#variable14684640]]()) {
@SuppressWarnings("unchecked")T rawType = (T) unwrap(eGenericType);
array[index++ ] = rawType;
}
return array;
}
@Override protected String delegateToString() {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("[");
EList<EGenericType> [[#variable146845a0]]= [[#variable14684640]]();
for (int i = 0, size = delegateSize(); i < size;) {
stringBuffer.append(String.valueOf(unwrap( [[#variable146845a0]].get(i))));
if ( ++i < size) {
stringBuffer.append(", ");
}
}
stringBuffer.append("]");
return stringBuffer.toString();
}
@Override protected boolean isInstance(Object object) {
return object instanceof [[#variable14684520]];
}
|