本文整理了Java中javax.security.jacc.URLPatternSpec.toString()
方法的一些代码示例,展示了URLPatternSpec.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URLPatternSpec.toString()
方法的具体详情如下:
包路径:javax.security.jacc.URLPatternSpec
类名称:URLPatternSpec
方法名:toString
暂无
代码示例来源:origin: org.glassfish/javax.security.jacc
public boolean equals(Object o)
{
if (o == null || ! (o instanceof URLPatternSpec)) return false;
URLPatternSpec that = (URLPatternSpec) o;
return this.toString().equals(that.toString());
}
代码示例来源:origin: javax.security.jacc/javax.security.jacc-api
public boolean equals(Object o)
{
if (o == null || ! (o instanceof URLPatternSpec)) return false;
URLPatternSpec that = (URLPatternSpec) o;
return this.toString().equals(that.toString());
}
代码示例来源:origin: javax.security.jacc/javax.security.jacc-api
/**
* Returns the hash code value for this URLPatternSpec
* properties of the returned hash code must be as follows: <p>
* <ul>
* <li> During the lifetime of a Java application, the hashCode method
* must return the same integer value, every time it is called on a
* URLPatternSpec object. The value returned by hashCode for a
* particular URlPatternSpec need not remain consistent from
* one execution of an application to another.
* <li> If two URLPatternSpec objects are equal according to the
* equals method, then calling the hashCode method on each of the two
* objects must produce the same integer result (within an
* application).
* </ul>
* <P>
* @return the integer hash code value for this object.
*/
public int hashCode()
{
if (hashCodeValue == 0)
hashCodeValue = this.toString().hashCode();
return hashCodeValue;
}
代码示例来源:origin: org.glassfish/javax.security.jacc
/**
* Returns the hash code value for this URLPatternSpec
* properties of the returned hash code must be as follows: <p>
* <ul>
* <li> During the lifetime of a Java application, the hashCode method
* must return the same integer value, every time it is called on a
* URLPatternSpec object. The value returned by hashCode for a
* particular URlPatternSpec need not remain consistent from
* one execution of an application to another.
* <li> If two URLPatternSpec objects are equal according to the
* equals method, then calling the hashCode method on each of the two
* objects must produce the same integer result (within an
* application).
* </ul>
* <P>
* @return the integer hash code value for this object.
*/
public int hashCode()
{
if (hashCodeValue == 0)
hashCodeValue = this.toString().hashCode();
return hashCodeValue;
}
代码示例来源:origin: javax.security.jacc/javax.security.jacc-api
/**
* Returns the hash code value for this WebUserDataPermission. The
* properties of the returned hash code must be as follows: <p>
* <ul>
* <li> During the lifetime of a Java application, the hashCode method
* shall return the same integer value every time it is called on a
* WebUserDataPermission object. The value returned by hashCode for a
* particular EJBMethod permission need not remain consistent from
* one execution of an application to another.
* <li> If two WebUserDataPermission objects are equal according to the
* equals method, then calling the hashCode method on each of the two
* Permission objects must produce the same integer result (within an
* application).
* </ul>
* <P>
* @return the integer hash code value for this object.
*/
public int hashCode() {
if (this.hashCodeValue == 0) {
String hashInput = this.urlPatternSpec.toString() +
" " + this.methodSpec.hashCode() +
":" + this.transportType;
this.hashCodeValue = hashInput.hashCode();
}
return this.hashCodeValue;
}
代码示例来源:origin: org.glassfish/javax.security.jacc
/**
* Returns the hash code value for this WebUserDataPermission. The
* properties of the returned hash code must be as follows: <p>
* <ul>
* <li> During the lifetime of a Java application, the hashCode method
* shall return the same integer value every time it is called on a
* WebUserDataPermission object. The value returned by hashCode for a
* particular EJBMethod permission need not remain consistent from
* one execution of an application to another.
* <li> If two WebUserDataPermission objects are equal according to the
* equals method, then calling the hashCode method on each of the two
* Permission objects must produce the same integer result (within an
* application).
* </ul>
* <P>
* @return the integer hash code value for this object.
*/
public int hashCode() {
if (this.hashCodeValue == 0) {
String hashInput = this.urlPatternSpec.toString() +
" " + this.methodSpec.hashCode() +
":" + this.transportType;
this.hashCodeValue = hashInput.hashCode();
}
return this.hashCodeValue;
}
代码示例来源:origin: javax.security.jacc/javax.security.jacc-api
/**
* Returns the hash code value for this WebResourcePermission. The
* properties of the returned hash code must be as follows: <p>
* <ul>
* <li> During the lifetime of a Java application, the hashCode method
* must return the same integer value, every time it is called on a
* WebResourcePermission object. The value returned by hashCode for a
* particular WebResourcePermission need not remain consistent from
* one execution of an application to another.
* <li> If two WebResourcePermission objects are equal according to the
* equals method, then calling the hashCode method on each of the two
* Permission objects must produce the same integer result (within an
* application).
* </ul>
* <P>
* @return the integer hash code value for this object.
*/
public int hashCode() {
if (this.hashCodeValue == 0) {
String hashInput = this.urlPatternSpec.toString()+ " " +
this.methodSpec.hashCode();
this.hashCodeValue = hashInput.hashCode();
}
return this.hashCodeValue;
}
代码示例来源:origin: org.glassfish/javax.security.jacc
/**
* Returns the hash code value for this WebResourcePermission. The
* properties of the returned hash code must be as follows: <p>
* <ul>
* <li> During the lifetime of a Java application, the hashCode method
* must return the same integer value, every time it is called on a
* WebResourcePermission object. The value returned by hashCode for a
* particular WebResourcePermission need not remain consistent from
* one execution of an application to another.
* <li> If two WebResourcePermission objects are equal according to the
* equals method, then calling the hashCode method on each of the two
* Permission objects must produce the same integer result (within an
* application).
* </ul>
* <P>
* @return the integer hash code value for this object.
*/
public int hashCode() {
if (this.hashCodeValue == 0) {
String hashInput = this.urlPatternSpec.toString()+ " " +
this.methodSpec.hashCode();
this.hashCodeValue = hashInput.hashCode();
}
return this.hashCodeValue;
}
内容来源于网络,如有侵权,请联系作者删除!