Java Code Examples for org.openide.filesystems.FileObject.hashCode()

The following are Jave code examples for showing how to use hashCode() of the org.openide.filesystems.FileObject class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: incubator-netbeans   File: SourceGroupSupport.java   Source Code and License Vote up 5 votes
@Override
public int hashCode() {
    int hash = 5;
    hash = 53 * hash + (this.sourceGroup != null ? this.sourceGroup.hashCode() : 0);
    FileObject root = getRootFolder();
    hash = 53 * hash + (root != null ? root.hashCode() : 0);
    hash = 53 * hash + (this.name != null ? this.name.hashCode() : 0);
    hash = 53 * hash + (this.displayName != null ? this.displayName.hashCode() : 0);
    return hash;
}
 
Example 2
Project: incubator-netbeans   File: IndexSearcher.java   Source Code and License Vote up 5 votes
@Override
public int hashCode() {
    final FileObject fo = getFileObject();
    return fo == null ?
        0 :
        fo.hashCode();
}
 
Example 3
Project: incubator-netbeans   File: NotifierKeyRef.java   Source Code and License Vote up 5 votes
public NotifierKeyRef(FileObject fo, KEY key, ReferenceQueue<FileObject> queue, final Notifier<KEY> outer) {
    super(fo, queue);
    this.outer = outer;
    this.key = key;
    this.hash = fo.hashCode();
    if (key != null) {
        Watcher.LOG.log(Level.FINE, "Adding watch for {0}", key);
    }
}