add methods

This commit is contained in:
Looly
2021-05-08 11:12:34 +08:00
parent 5e973f1c8c
commit f6c38ed8ff
2 changed files with 3 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ public class MaskBit {
* @param mask 掩码的点分十进制表示,如 255.255.255.0
*
* @return 掩码位,如 24如果掩码不合法则返回null
* @since 5.6.5
*/
public static Integer getMaskBit(String mask) {
return MASK_BIT_MAP.getKey(mask);