@Test public void buildURI_noAddress() { exceptionRule.expect(IllegalStateException.class); exceptionRule.expectMessage("Could not create a NEP-9 URI without a recipient address."); new NeoURI().buildURI(); }
public NeoURI buildURI() { if (toAddress == null) { throw new IllegalStateException("Could not create a NEP-9 URI without a recipient address."); } String basePart = NEO_SCHEME + ":" + toAddress.toAddress(); String queryPart = buildQueryPart(); String uri; if (queryPart.equals("")) { uri = basePart; } else { uri = basePart + "?" + queryPart; } this.uri = URI.create(uri); return this; }
NeoURI { public NeoURI buildURI() { if (toAddress == null) { throw new IllegalStateException("Could not create a NEP-9 URI without a recipient address."); } String basePart = NEO_SCHEME + ":" + toAddress.toAddress(); String queryPart = buildQueryPart(); String uri; if (queryPart.equals("")) { uri = basePart; } else { uri = basePart + "?" + queryPart; } this.uri = URI.create(uri); return this; } }
NeoURI { public NeoURI buildURI() { if (toAddress == null) { throw new IllegalStateException("Could not create a NEP-9 URI without a recipient address."); } String basePart = NEO_SCHEME + ":" + toAddress.toAddress(); String queryPart = buildQueryPart(); String uri; if (queryPart.equals("")) { uri = basePart; } else { uri = basePart + "?" + queryPart; } this.uri = URI.create(uri); return this; } NeoURI();  NeoURI(Neow3j neow3j); }
NeoURI { public NeoURI buildURI() { if (toAddress == null) { throw new IllegalStateException("Could not create a NEP-9 URI without a recipient address."); } String basePart = NEO_SCHEME + ":" + toAddress.toAddress(); String queryPart = buildQueryPart(); String uri; if (queryPart.equals("")) { uri = basePart; } else { uri = basePart + "?" + queryPart; } this.uri = URI.create(uri); return this; } NeoURI();  NeoURI(Neow3j neow3j); static NeoURI fromURI(String uriString); TransactionBuilder buildTransfer(); NeoURI toAddress(String address); NeoURI toAddress(ScriptHash address); NeoURI asset(byte[] asset); NeoURI asset(ScriptHash asset); NeoURI asset(String asset); NeoURI amount(String amount); NeoURI amount(Integer amount); NeoURI amount(BigInteger amount); NeoURI amount(BigDecimal amount); NeoURI neow3j(Neow3j neow3j); NeoURI wallet(Wallet wallet); NeoURI buildURI(); URI getURI(); String getURIAsString(); String getToAddress(); ScriptHash getAddressAsScriptHash(); ScriptHash getAsset(); String getAssetAsString(); String getAssetAsAddress(); BigDecimal getAmount(); String getAmountAsString(); }
NeoURI { public NeoURI buildURI() { if (toAddress == null) { throw new IllegalStateException("Could not create a NEP-9 URI without a recipient address."); } String basePart = NEO_SCHEME + ":" + toAddress.toAddress(); String queryPart = buildQueryPart(); String uri; if (queryPart.equals("")) { uri = basePart; } else { uri = basePart + "?" + queryPart; } this.uri = URI.create(uri); return this; } NeoURI();  NeoURI(Neow3j neow3j); static NeoURI fromURI(String uriString); TransactionBuilder buildTransfer(); NeoURI toAddress(String address); NeoURI toAddress(ScriptHash address); NeoURI asset(byte[] asset); NeoURI asset(ScriptHash asset); NeoURI asset(String asset); NeoURI amount(String amount); NeoURI amount(Integer amount); NeoURI amount(BigInteger amount); NeoURI amount(BigDecimal amount); NeoURI neow3j(Neow3j neow3j); NeoURI wallet(Wallet wallet); NeoURI buildURI(); URI getURI(); String getURIAsString(); String getToAddress(); ScriptHash getAddressAsScriptHash(); ScriptHash getAsset(); String getAssetAsString(); String getAssetAsAddress(); BigDecimal getAmount(); String getAmountAsString();  }