public Set < Address > getAddresses ( T physicalAddress ) { Set < Address > result = new HashSet < Address > ( ) ; for ( Entry < Address , T > entry : nodes . entrySet ( ) ) { if ( entry . getValue ( ) == null || entry . getValue ( ) . equals ( physicalAddress ) ) { result . add ( entry . getKey ( ) ) ; } } if ( trace ) log . tracef ( "Addresses: %s" , result ) ; return Collections . unmodifiableSet ( result ) ; }
Get the addresses