1 package org.drools.spi; 2 3 import org.drools.rule.Declaration; 4 5 import java.util.Set; 6 import java.util.Map; 7 import java.util.HashMap; 8 9 public class MockTuple implements Tuple 10 { 11 private Map tuple; 12 13 public MockTuple() 14 { 15 this.tuple = new HashMap(); 16 } 17 18 public Object get(Declaration declaration) 19 { 20 return this.tuple.get( declaration ); 21 } 22 23 public void put(Declaration declaration, 24 Object value) 25 { 26 this.tuple.put( declaration, 27 value ); 28 } 29 30 public Set getDeclarations() 31 { 32 return this.tuple.keySet(); 33 } 34 }

This page was automatically generated by Maven