SecureKeyValue t1=new SecureKeyValue(new Integer("12345"), new Long("123456789012345"), new Fraction(-1,1,5)); t1.getValue(new Long("12345")); SecureKeyValue t2=new SecureKeyValue(new Integer("12344"), "abcabcde", "Frank Zappa"); t2.setValue("abcabcde", "Gail Zappa"); System.out.println(t2.getValue("abcabcde")); System.out.println(t2.getValue("abcdeabc")); SecureKeyValue t3=new SecureKeyValue("name", new BigDecimal("1111111111111111111111111111111111111111111"), "Ruth Underwood"); t3.changeLock(new BigDecimal("1111111111111111111111111111111111111111111"), new Integer(11111)); System.out.println(t3.getValue(new Integer(11111))); SecureKeyValue t4=new SecureKeyValue("name", new BigDecimal("123456789012345678901234567890"), "Mike Keneally"); t4.changeLock(new BigDecimal("123456789012345678901234567890"), new Integer(11111)); System.out.println(t4.getValue(new Integer(11111))); SecureKeyValue t5=new SecureKeyValue("name", new Integer(12345), "Chester Thompson"); t5.changeLock(new Integer(12345), new BigDecimal("1111111111111111111111111111111111111111111")); System.out.println(t5.getValue(new Integer(11111))); SecureKeyValue t6; t6=new SecureKeyValue("Frank", "aaaaaaaa"); t6.setValue("aaaaaaaa", new Person("Frank Zappa", 53)); System.out.println(t6.getKey()); t6.changeKey("person1", "aaaaaaaa"); t6.getValue("aaaaaaaa").change(new Person("Frank Vincent Zappa", 74)); System.out.println(t6.getValue("aaaaaaaa")); SecureKeyValue t7=new SecureKeyValue(new Person("Don Preston", 25), new Integer(12345), "Don Preston"); SecureKeyValue t8=new SecureKeyValue("abc", "def"); t8.setValue("def", t8.getKey()); System.out.println(t8.getValue("def")); t8.setValue(t8.getKey(), "aaa"); SecureKeyValue t9=new SecureKeyValue("aaaa", "bbbb", "cccc"); t9.changeLock("bbbb", null); t9.getValue("bbbb"); SecureKeyValue t10=new SecureKeyValue("aaaa", "bbbb", "cccc"); t10=new SecureKeyValue("aaaa", "bbbb", new Integer(1234)); System.out.println(t10.getValue("bbbb"));