@Test public void detectsCirculars() throws Exception { Contract c = new Contract(); RoleLink r1 = new RoleLink("bar", "foo"); RoleLink r2 = new RoleLink("foo", "bar"); c.registerRole(r1); c.registerRole(r2); assertNull(r2.resolve()); }
@Override public <T extends Role> T resolve() { return resolve(true); }
RoleLink extends Role { @Override public <T extends Role> T resolve() { return resolve(true); } }
RoleLink extends Role { @Override public <T extends Role> T resolve() { return resolve(true); } private  RoleLink();  RoleLink(String name,Contract contract); @Deprecated  RoleLink(String name);  RoleLink(String name, Contract contract, String roleName); @Deprecated  RoleLink(String name, String roleName); }
RoleLink extends Role { @Override public <T extends Role> T resolve() { return resolve(true); } private  RoleLink();  RoleLink(String name,Contract contract); @Deprecated  RoleLink(String name);  RoleLink(String name, Contract contract, String roleName); @Deprecated  RoleLink(String name, String roleName); @Nullable Role getRole(); @Override T resolve(); T resolve(boolean ignoreRefs); @Override @Deprecated Set<KeyRecord> getKeyRecords(); @Override @Deprecated Set<AnonymousId> getAnonymousIds(); @Override @Deprecated Set<KeyAddress> getKeyAddresses(); @Override @Deprecated Set<PublicKey> getKeys(); @Override boolean isAllowedForKeysQuantized(Set<? extends AbstractKey> keys); @Override boolean isValid(); @Override @Deprecated boolean equalKeys(Role otherRole); @Override void initWithDsl(Binder serializedRole); @Override String toString(); @Override Binder serialize(BiSerializer s); @Override void deserialize(Binder data, BiDeserializer deserializer); @Override void anonymize(); }
RoleLink extends Role { @Override public <T extends Role> T resolve() { return resolve(true); } private  RoleLink();  RoleLink(String name,Contract contract); @Deprecated  RoleLink(String name);  RoleLink(String name, Contract contract, String roleName); @Deprecated  RoleLink(String name, String roleName); @Nullable Role getRole(); @Override T resolve(); T resolve(boolean ignoreRefs); @Override @Deprecated Set<KeyRecord> getKeyRecords(); @Override @Deprecated Set<AnonymousId> getAnonymousIds(); @Override @Deprecated Set<KeyAddress> getKeyAddresses(); @Override @Deprecated Set<PublicKey> getKeys(); @Override boolean isAllowedForKeysQuantized(Set<? extends AbstractKey> keys); @Override boolean isValid(); @Override @Deprecated boolean equalKeys(Role otherRole); @Override void initWithDsl(Binder serializedRole); @Override String toString(); @Override Binder serialize(BiSerializer s); @Override void deserialize(Binder data, BiDeserializer deserializer); @Override void anonymize();  }