Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.file
Class FileChanges

java.lang.Object
  extended by java.util.AbstractCollection<FileChange>
      extended by oracle.ide.file.FileChanges

All Implemented Interfaces:
java.lang.Iterable<FileChange>, java.util.Collection<FileChange>

public final class FileChanges
extends java.util.AbstractCollection<FileChange>

A collection of changes to files.

Since:
11.1.2

Method Summary
 FileChange getChange(java.net.URL file)
          Get the change for a specific file, if it has changed.
 long getCookie()
          Get the cookie for this file table.
 int getVersion()
          Get the version number of the file table or scope after these changes.
 java.util.Iterator<FileChange> iterator()
          Returns an iterator over the file changes.
 int size()
          Get the number of changes.

 

Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.Collection
equals, hashCode

 

Method Detail

getChange

public FileChange getChange(@NotNull
                            java.net.URL file)
Get the change for a specific file, if it has changed.
Parameters:
file - the URL of the file
Returns:
the change, or null if the file has not changed

size

public int size()
Get the number of changes.
Specified by:
size in interface java.util.Collection<FileChange>
Specified by:
size in class java.util.AbstractCollection<FileChange>
Returns:
the number of changes

getVersion

public int getVersion()
Get the version number of the file table or scope after these changes.
Returns:
the new version number

getCookie

public long getCookie()
Get the cookie for this file table.
Returns:
the cookie

iterator

public java.util.Iterator<FileChange> iterator()
Returns an iterator over the file changes. Callers looping over this iterator should typically check for thread interruption to be responsive to cancellation in the event that there are a lot of changes.
Specified by:
iterator in interface java.lang.Iterable<FileChange>
Specified by:
iterator in interface java.util.Collection<FileChange>
Specified by:
iterator in class java.util.AbstractCollection<FileChange>
Returns:
an iterator over the file changes

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.