public Set < DiscoverInfo . Identity > getIdentities ( ) { Set < Identity > res = new HashSet <> ( identities ) ; // Add the main identity that must exist res . add ( identity ) ; return Collections . unmodifiableSet ( res ) ; }
Returns all identities of this client as unmodifiable Collection .