Skip to content

Commit

Permalink
Make Networks final, drop public
Browse files Browse the repository at this point in the history
  • Loading branch information
faktas2 committed Nov 7, 2023
1 parent be0e074 commit 4d93a71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/maxmind/db/Networks.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @param <T> The type of data returned by the iterator.
*/
public class Networks<T> implements Iterator<DatabaseRecord<T>> {
public final class Networks<T> implements Iterator<DatabaseRecord<T>> {
private final Reader reader;
private final Stack<NetworkNode> nodes;
private NetworkNode lastNode;
Expand Down Expand Up @@ -105,7 +105,7 @@ public DatabaseRecord<T> next() {
}
}

public boolean isInIpv4Subtree(byte[] ip) {
private boolean isInIpv4Subtree(byte[] ip) {
if (ip.length != 16) {
return false;
}
Expand Down Expand Up @@ -174,7 +174,7 @@ static class NetworkNode {
* @param prefix The prefix of the node.
* @param pointer The node number
*/
public NetworkNode(byte[] ip, int prefix, int pointer) {
NetworkNode(byte[] ip, int prefix, int pointer) {
this.ip = ip;
this.prefix = prefix;
this.pointer = pointer;
Expand Down

0 comments on commit 4d93a71

Please sign in to comment.