return new MutableTypedSideChannel<String>(keys,values);
}
@Test
public void testConstructors() {
LongKeyDomain keys = LongKeyDomain.create(1, 2);
MutableTypedSideChannel<String> channel = new MutableTypedSideChannel<String>(keys.clone());
assertTrue(channel.isEmpty());
channel = new MutableTypedSideChannel<String>(keys.clone(), new String[]{a,b});
assertFalse(channel.isEmpty());
assertEquals(a, channel.get(1));
assertEquals(b, channel.get(2));
keys.setActive(0, false);
channel = new MutableTypedSideChannel<String>(keys.clone(), new String[]{null,b});
assertFalse(channel.isEmpty());
assertEquals(b,channel.get(2));
assertNull(channel.get(1));
channel.put(1, a); //check if this is in domain.
channel = new MutableTypedSideChannel<String>(keys.clone(), new String[]{null,b,c});
assertFalse(channel.isEmpty());
assertEquals(b,channel.get(2));
assertNull(channel.get(1));
assertNull(channel.get(3));
channel.put(1, a); //check if this is in domain.