package net.aeten.core.ipc;

public class Device {
	private final String name;
	private final byte[] address;
	private final int index;
	

	public Device(String name, int index, byte[] address) {
		super();
		this.name = name;
		this.address = address;
		this.index = index;
	}


	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	/**
	 * @return the address
	 */
	public byte[] getAddress() {
		return address;
	}


	/**
	 * @return the index
	 */
	public int getIndex() {
		return index;
	}

}

@@ -22,16 +22,93 @@
 e.ipc;%0A%0A
+import java.util.Arrays;%0A%0Aimport net.jcip.annotations.Immutable;%0A%0A@Immutable%0A
 public c
@@ -314,23 +314,54 @@
 dress = 
-address
+Arrays.copyOf(address, address.length)
 ;%0A%09%09this
@@ -532,23 +532,54 @@
 %09return 
-address
+Arrays.copyOf(address, address.length)
 ;%0A%09%7D%0A%0A%0A%09

Device is immuable