类 IPAddress

java.lang.Object
com.alibaba.druid.support.http.util.IPAddress
所有已实现的接口:
Cloneable

public class IPAddress extends Object implements Cloneable
版本:
1.0
作者:
Marcel Dullaart
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected int
    IP address
  • 构造器概要

    构造器
    构造器
    说明
    IPAddress(int address)
     
    IPAddress(String ipAddressStr)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    equals(Object another)
     
    final int
    Return the integer representation of the IP address.
    int
     
    final boolean
    Check if the IP address is belongs to a Class A IP address.
    final boolean
    Check if the IP address is belongs to a Class B IP address.
    final boolean
    Check if the IP address is belongs to a Class C IP address.
    Return the string representation of the IP Address following the common decimal-dotted notation xxx.xxx.xxx.xxx.

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • ipAddress

      protected int ipAddress
      IP address
  • 构造器详细资料

    • IPAddress

      public IPAddress(String ipAddressStr)
    • IPAddress

      public IPAddress(int address)
  • 方法详细资料

    • getIPAddress

      public final int getIPAddress()
      Return the integer representation of the IP address.
      返回:
      The IP address.
    • toString

      public String toString()
      Return the string representation of the IP Address following the common decimal-dotted notation xxx.xxx.xxx.xxx.
      覆盖:
      toString 在类中 Object
      返回:
      Return the string representation of the IP address.
    • isClassA

      public final boolean isClassA()
      Check if the IP address is belongs to a Class A IP address.
      返回:
      Return true if the encapsulated IP address belongs to a class A IP address, otherwise returne false.
    • isClassB

      public final boolean isClassB()
      Check if the IP address is belongs to a Class B IP address.
      返回:
      Return true if the encapsulated IP address belongs to a class B IP address, otherwise returne false.
    • isClassC

      public final boolean isClassC()
      Check if the IP address is belongs to a Class C IP address.
      返回:
      Return true if the encapsulated IP address belongs to a class C IP address, otherwise returne false.
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object another)
      覆盖:
      equals 在类中 Object