本文整理了Java中javax.mail.Flags.equals()
方法的一些代码示例,展示了Flags.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flags.equals()
方法的具体详情如下:
包路径:javax.mail.Flags
类名称:Flags
方法名:equals
[英]Check whether the two Flags objects are equal.
[中]检查两个标志对象是否相等。
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Equality comparison.
*/
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Equality comparison.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Set the specified flags on this message to the specified value.
*
* @param newFlags the flags to be set
* @param set the value to be set
*/
public synchronized void setFlags(Flags newFlags, boolean set)
throws MessagingException {
Flags oldFlags = (Flags)flags.clone();
super.setFlags(newFlags, set);
if (!flags.equals(oldFlags))
folder.notifyMessageChangedListeners(
MessageChangedEvent.FLAGS_CHANGED, this);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Set the specified flags on this message to the specified value.
*
* @param newFlags the flags to be set
* @param set the value to be set
*/
@Override
public synchronized void setFlags(Flags newFlags, boolean set)
throws MessagingException {
Flags oldFlags = (Flags)flags.clone();
super.setFlags(newFlags, set);
if (!flags.equals(oldFlags))
folder.notifyMessageChangedListeners(
MessageChangedEvent.FLAGS_CHANGED, this);
}
代码示例来源:origin: javax.mail/javax.mail-api
/**
* Equality comparison.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec
public boolean equals(Object other) {
if (other == this) return true;
if (other instanceof FlagTerm == false) return false;
final FlagTerm otherFlags = (FlagTerm) other;
return otherFlags.set == this.set && otherFlags.flags.equals(flags);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Equality comparison.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec
public boolean equals(Object other) {
if (other == this) return true;
if (other instanceof FlagTerm == false) return false;
final FlagTerm otherFlags = (FlagTerm) other;
return otherFlags.set == this.set && otherFlags.flags.equals(flags);
}
代码示例来源:origin: com.sun.mail/mailapi
/**
* Equality comparison.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Equality comparison.
*/
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Equality comparison.
*/
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Equality comparison.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Equality comparison.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Equality comparison.
*/
@Override
public boolean equals(Object obj) {
if (!(obj instanceof FlagTerm))
return false;
FlagTerm ft = (FlagTerm)obj;
return ft.set == this.set && ft.flags.equals(this.flags);
}
代码示例来源:origin: org.apache.james/apache-james-mailbox-cassandra
private boolean identicalFlags(Flags oldFlags, Flags newFlags) {
return oldFlags.equals(newFlags);
}
代码示例来源:origin: org.apache.james/apache-james-mailbox-store
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof UnloadedMessageResult) {
UnloadedMessageResult that = (UnloadedMessageResult)obj;
return (size == that.size) && (uid.equals(that.uid)) && (modSeq == that.modSeq) && exception.equals(that.exception)
&& internalDate.equals(that.internalDate) && flags.equals(that.flags);
}
return false;
}
代码示例来源:origin: org.apache.james/apache-james-mailbox-cassandra
private boolean identicalFlags(ComposedMessageIdWithMetaData oldComposedId, Flags newFlags) {
return oldComposedId.getFlags().equals(newFlags);
}
代码示例来源:origin: org.apache.geronimo.javamail/geronimo-javamail_1.3.1_provider
public void setFlags(Flags newFlags, boolean set) throws MessagingException {
Flags oldFlags = (Flags) flags.clone();
super.setFlags(newFlags, set);
if (!flags.equals(oldFlags)) {
((POP3Folder) folder).notifyMessageChangedListeners(MessageChangedEvent.FLAGS_CHANGED, this);
}
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Set the specified flags on this message to the specified value.
*
* @param newFlags the flags to be set
* @param set the value to be set
*/
public synchronized void setFlags(Flags newFlags, boolean set)
throws MessagingException {
Flags oldFlags = (Flags)flags.clone();
super.setFlags(newFlags, set);
if (!flags.equals(oldFlags))
folder.notifyMessageChangedListeners(
MessageChangedEvent.FLAGS_CHANGED, this);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Set the specified flags on this message to the specified value.
*
* @param newFlags the flags to be set
* @param set the value to be set
*/
public void setFlags(Flags newFlags, boolean set)
throws MessagingException {
Flags oldFlags = (Flags)flags.clone();
super.setFlags(newFlags, set);
if (!flags.equals(oldFlags))
folder.notifyMessageChangedListeners(
MessageChangedEvent.FLAGS_CHANGED, this);
}
内容来源于网络,如有侵权,请联系作者删除!