Class SynchronizedEvent.Changes

  • Enclosing class:
    SynchronizedEvent

    public static class SynchronizedEvent.Changes
    extends Object
    Changes to a collection of items identified by a long.
    • Constructor Detail

      • Changes

        public Changes()
      • Changes

        public Changes​(int total,
                       long[] added,
                       long[] modified,
                       long[] deleted)
    • Method Detail

      • getAdded

        public long[] getAdded()
        Ids of added objects.
        Returns:
        ids
      • getModified

        public long[] getModified()
        Ids of modified objects.
        Returns:
        ids
      • getDeleted

        public long[] getDeleted()
        Ids of deleted objects.
        Returns:
        ids
      • getTotal

        public int getTotal()
        Total number of items in the library.
        Returns:
        count or -1 if unknown
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object