@Test public void testFilteringEmptyList() { assertTrue(filter.allows(new ArrayList<ContextRegisterInfo>())); }
public boolean allows(List<ContextRegisterInfo> contextRegisterInfos) { for (ContextRegisterInfo cInfo : contextRegisterInfos) { if (contextRegisters.contains(cInfo.getContextRegister())) { if (!values.get(cInfo.getContextRegister()).equals(cInfo.getValueAsBigInteger())) { return false; } } } return true; }
ContextRegisterFilter { public boolean allows(List<ContextRegisterInfo> contextRegisterInfos) { for (ContextRegisterInfo cInfo : contextRegisterInfos) { if (contextRegisters.contains(cInfo.getContextRegister())) { if (!values.get(cInfo.getContextRegister()).equals(cInfo.getValueAsBigInteger())) { return false; } } } return true; } }
ContextRegisterFilter { public boolean allows(List<ContextRegisterInfo> contextRegisterInfos) { for (ContextRegisterInfo cInfo : contextRegisterInfos) { if (contextRegisters.contains(cInfo.getContextRegister())) { if (!values.get(cInfo.getContextRegister()).equals(cInfo.getValueAsBigInteger())) { return false; } } } return true; } ContextRegisterFilter(); }
ContextRegisterFilter { public boolean allows(List<ContextRegisterInfo> contextRegisterInfos) { for (ContextRegisterInfo cInfo : contextRegisterInfos) { if (contextRegisters.contains(cInfo.getContextRegister())) { if (!values.get(cInfo.getContextRegister()).equals(cInfo.getValueAsBigInteger())) { return false; } } } return true; } ContextRegisterFilter(); void addRegAndValueToFilter(String contextRegister, BigInteger value); boolean allows(List<ContextRegisterInfo> contextRegisterInfos); @Override String toString(); String getCompactString(); @Override int hashCode(); @Override boolean equals(Object o); Map<String, BigInteger> getValueMap(); }
ContextRegisterFilter { public boolean allows(List<ContextRegisterInfo> contextRegisterInfos) { for (ContextRegisterInfo cInfo : contextRegisterInfos) { if (contextRegisters.contains(cInfo.getContextRegister())) { if (!values.get(cInfo.getContextRegister()).equals(cInfo.getValueAsBigInteger())) { return false; } } } return true; } ContextRegisterFilter(); void addRegAndValueToFilter(String contextRegister, BigInteger value); boolean allows(List<ContextRegisterInfo> contextRegisterInfos); @Override String toString(); String getCompactString(); @Override int hashCode(); @Override boolean equals(Object o); Map<String, BigInteger> getValueMap();  }