withResource method

JID withResource(
  1. String resource
)

Converts the JID into one with a resource part of resource.

Implementation

JID withResource(String resource) => JID(local, domain, resource);