Example usage for javax.tools FileObject equals

List of usage examples for javax.tools FileObject equals

Introduction

In this page you can find the example usage for javax.tools FileObject equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

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

Usage

From source file:org.cloudfoundry.tools.io.compiler.ResourceJavaFileManager.java

@Override
public boolean isSameFile(FileObject a, FileObject b) {
    if (a instanceof ResourceFileObject && b instanceof ResourceFileObject) {
        return a.equals(b);
    }/*from   w  ww  . j  a  v  a  2 s . c  o  m*/
    return super.isSameFile(a, b);
}