Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NET-630 Changed SubnetUtils for NEW SubnetInfo #24

Closed
wants to merge 13 commits into from

Conversation

Umoxfo
Copy link

@Umoxfo Umoxfo commented Mar 24, 2017

The constructors of this class has been modified to create a object of subnet summary information.
Also, added two new static methods to create the object.

Removed the insignificant value representation, which are no reasons to be defined in this class.
Renamed getAddressCount() to getAddressCountString(); the old name, getAddressCount(), was the obsoleted name and confused others.
Improved comments
Changes the path to SubnetInfo (SubnetUtilsExample.java and SubnetUtilsTest.java)
Replaced getAddressCount to getAddressLong in the SubnetUtilsTest class.

Followed the coding conventions of Apache Commons Net.
Improved comments.
The method rangeCheck, pop, and format of SubnetUtils was moved to SubnetInfo in the subnet package.
Added asInteger, getCidrSignature, and getAllAddresses methods of SubnetUtils.SubnetInfo to SubnetInfo in the subnet package.
Changed the parameter type of isInRange from short array to integer array.
Improved comments
IP4Subnet and IP6Subnet were moved to the until package.
@Umoxfo Umoxfo closed this Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant