congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EISOrderedCollectionChangeRecord.getNewCollectionSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getNewCollectionSize
method
in
org.eclipse.persistence.eis.EISOrderedCollectionChangeRecord

Best Java code snippets using org.eclipse.persistence.eis.EISOrderedCollectionChangeRecord.getNewCollectionSize (Showing top 9 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Add a change set after it has been applied.
 */
public void simpleAddChangeSet(Object changeSet) {
  // check whether the change set was removed earlier
  if (!this.restoreRemovedChangeSet(changeSet)) {
    // the change set is tacked on the end of the new collection
    this.addAddedChangeSet(changeSet, this.getNewCollectionSize());
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Add a change set after it has been applied.
 */
public void simpleAddChangeSet(Object changeSet) {
  // check whether the change set was removed earlier
  if (!this.restoreRemovedChangeSet(changeSet)) {
    // the change set is tacked on the end of the new collection
    this.addAddedChangeSet(changeSet, this.getNewCollectionSize());
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Add a change set after it has been applied.
 */
public void simpleAddChangeSet(Object changeSet) {
  // check whether the change set was removed earlier
  if (!this.restoreRemovedChangeSet(changeSet)) {
    // the change set is tacked on the end of the new collection
    this.addAddedChangeSet(changeSet, this.getNewCollectionSize());
  }
}
origin: com.haulmont.thirdparty/eclipselink

int newSize = getNewCollectionSize();
List newCollection = new ArrayList(newSize);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

int newSize = this.getNewCollectionSize();
Vector newCollection = new Vector(newSize);
origin: org.eclipse.persistence/org.eclipse.persistence.core

int newSize = getNewCollectionSize();
List newCollection = new ArrayList(newSize);
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Attempt to restore the specified change set.
 * Return true if the change set was removed earlier
 * and was successfully restored to the end of
 * the collection.
 */
private boolean restoreRemovedChangeSet(Object changeSet) {
  int changeSetIndex = this.getRemovesIndexOf(changeSet);
  if (changeSetIndex == -1) {
    return false;
  }
  this.getRemoves().remove(changeSetIndex);
  int removeIndex = this.getRemoveIndex(changeSetIndex);
  this.setRemoveIndexes(this.removeFrom(changeSetIndex, this.getRemoveIndexes()));
  // now move the change set over to the collection of moves
  this.addMovedChangeSet(changeSet, removeIndex, this.getNewCollectionSize());
  return true;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Attempt to restore the specified change set.
 * Return true if the change set was removed earlier
 * and was successfully restored to the end of
 * the collection.
 */
private boolean restoreRemovedChangeSet(Object changeSet) {
  int changeSetIndex = this.getRemovesIndexOf(changeSet);
  if (changeSetIndex == -1) {
    return false;
  }
  this.getRemoves().remove(changeSetIndex);
  int removeIndex = this.getRemoveIndex(changeSetIndex);
  this.setRemoveIndexes(this.removeFrom(changeSetIndex, this.getRemoveIndexes()));
  // now move the change set over to the collection of moves
  this.addMovedChangeSet(changeSet, removeIndex, this.getNewCollectionSize());
  return true;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Attempt to restore the specified change set.
 * Return true if the change set was removed earlier
 * and was successfully restored to the end of
 * the collection.
 */
private boolean restoreRemovedChangeSet(Object changeSet) {
  int changeSetIndex = this.getRemovesIndexOf(changeSet);
  if (changeSetIndex == -1) {
    return false;
  }
  this.getRemoves().remove(changeSetIndex);
  int removeIndex = this.getRemoveIndex(changeSetIndex);
  this.setRemoveIndexes(this.removeFrom(changeSetIndex, this.getRemoveIndexes()));
  // now move the change set over to the collection of moves
  this.addMovedChangeSet(changeSet, removeIndex, this.getNewCollectionSize());
  return true;
}
org.eclipse.persistence.eisEISOrderedCollectionChangeRecordgetNewCollectionSize

Javadoc

Return the number of elements in the new collection, without triggering the instantiation of the collections.

Popular methods of EISOrderedCollectionChangeRecord

  • <init>
    Construct a ChangeRecord that can be used to represent the changes to an ordered collection.
  • addAddedChangeSet
    Add an added change set.
  • addMovedChangeSet
    Add an moved change set.
  • addRemovedChangeSet
    Add an removed change set.
  • addTo
    Add the int[] to the end of the array. Return the new array.
  • cancelAddedChangeSet
    The specified change set was added earlier; cancel it out.
  • getAdd
    Return the specified add.
  • getAddIndexes
    ADVANCED: Return the indexes into the new collection of the elements that were added.
  • getAdds
    ADVANCED: Return the entries for all the elements added to the new collection. The contents of this
  • getAddsIndexOf
    Return the index in the adds of the specified change set, without triggering the instantiation of th
  • getAddsSize
    Return the number of adds, without triggering the instantiation of the collection.
  • getBeforeMoveIndex
    Return the specified "before" move index.
  • getAddsSize,
  • getBeforeMoveIndex,
  • getMove,
  • getMoveIndexPairs,
  • getMoves,
  • getMovesIndexOf,
  • getMovesSize,
  • getNewCollection,
  • getOwner

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Menu (java.awt)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now