javax.sip.address.Address.equals()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中javax.sip.address.Address.equals()方法的一些代码示例,展示了Address.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Address.equals()方法的具体详情如下:
包路径:javax.sip.address.Address
类名称:Address
方法名:equals

Address.equals介绍

暂无

代码示例

代码示例来源:origin: org.jitsi/jain-sip-ri-ossonly

public boolean equals(Object other)
{
   if(other instanceof PServedUser)
   {
    final PServedUserHeader psu = (PServedUserHeader)other;
    return this.getAddress().equals(((PServedUser) other).getAddress());
   }
  return false;
}

代码示例来源:origin: org.jitsi/jain-sip-ri-ossonly

public boolean equals(Object other) {
  if (this==other) return true;
  if (other instanceof HeaderAddress && other instanceof Parameters) {
    final HeaderAddress o = (HeaderAddress) other;
    return this.getAddress().equals( o.getAddress() ) && this.equalParameters( (Parameters) o );
  }
  return false;
}

代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl

public Address getPoppedRoute() {
  if((this.poppedRoute == null && poppedRouteHeader != null) ||
      (poppedRoute != null && poppedRouteHeader != null && !poppedRoute.getAddress().equals(poppedRouteHeader.getAddress()))) {
    this.poppedRoute = new AddressImpl(poppedRouteHeader.getAddress(), null, getTransaction() == null ? ModifiableRule.Modifiable : ModifiableRule.NotModifiable);
  }
  return poppedRoute;
}

代码示例来源:origin: org.jitsi/jain-sip-ri-ossonly

Route route = (Route) routeList.getFirst();
if (route != null
    && rr.getAddress().equals(
        route.getAddress())) {
  routeList.removeFirst();

相关文章