testdata.ArrayClient2 Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2011 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package testdata;
public class ArrayClient2 {
private T[] internal;
public ArrayClient2(T[] internal) {
this.internal = internal;
}
public T get(int index) {
return internal[index];
}
public T set(int index, T value) {
return internal[index] = value;
}
public static ArrayClient2 access(X[] val) {
return new ArrayClient2(val);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy