question: private long toLong ( InetAddress inetAddress ) { byte [ ] address = inetAddress . getAddress ( ) ; long result = 0 ; for ( int i = 0 ; i < address . length ; i ++ ) { result <<= 8 ; result |= address [ i ] & BYTE_MASK ; } return result ; }
target:  Converts an IP address into a long