public String getCidr ( ) { if ( cidr != null ) { return cidr ; } if ( ipAddress != null ) { if ( mask != null ) { return new SubnetUtils ( ipAddress , mask ) . getCidrSignature ( ) ; } if ( cidrMask != null ) { return new SubnetUtils ( ipAddress + cidrMask ) . getCidrSignature ( ) ; } } return null ; }
Returns IP address in CIDR format .