Skip to content

IP address maths and collections library for Java

License

ipfreely-uk/java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java CI with Maven JavaDoc

IPFreely.uk

IP address manipulation library.

Example

// EXAMPLE
// Define 192.168.0.0/24
int maskBits = 24;
V4 networkAddress = Family.v4().parse("192.168.0.0");
// 255.255.255.0
V4 mask = Family.v4().subnets().masks().get(maskBits);
// 0.0.0.255
V4 maskComplement = mask.not();
// 192.168.0.255
V4 lastAddress = maskComplement.or(networkAddress);

Documentation

Javadoc/javadoc

Releases

Libraries are published to Maven Central

Versions

Version numbers are three digits - the Java version, major version, minor version.

Building

Requires JDK17+.

 ./code/mvnw -f code/pom.xml install

About

IP address maths and collections library for Java

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •