public class MaskBit extends Object
| Constructor and Description |
|---|
MaskBit() |
| Modifier and Type | Method and Description |
|---|---|
static String |
get(int maskBit)
根据掩码位获取掩码
|
static Integer |
getMaskBit(String mask)
根据掩码获取掩码位
|
static long |
getMaskIpLong(int maskBit)
根据掩码位获取掩码IP(Long型)
|
public static String get(int maskBit)
maskBit - 掩码位public static Integer getMaskBit(String mask)
mask - 掩码的点分十进制表示,如 255.255.255.0public static long getMaskIpLong(int maskBit)
maskBit - 掩码位Copyright © 2025. All rights reserved.