Example usage for javax.activation DataHandler equals

List of usage examples for javax.activation DataHandler equals

Introduction

In this page you can find the example usage for javax.activation DataHandler equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:it.cnr.icar.eric.server.lcm.versioning.VersionProcessor.java

private boolean repositoryItemsAreIdentical(RepositoryItem ri1, RepositoryItem ri2) {
    DataHandler dh1 = ri1.getDataHandler();
    DataHandler dh2 = ri2.getDataHandler();

    return dh1.equals(dh2);
}

From source file:org.apache.axis2.jaxws.handler.AttachmentsAdapter.java

public boolean containsValue(Object value) {
    Message m = mc.getMessage();/*from ww w  . j av  a 2  s  .  c o m*/

    Set<String> keys = this.keySet();
    for (String key : keys) {
        DataHandler dh = m.getDataHandler(key);
        if (dh.equals(value)) {
            return true;
        }
    }
    return false;
}