Class BatchedEntityIdWithRevisions<E extends EntityIdWithRevision<?>>

  • All Implemented Interfaces:
    org.eclipse.ditto.base.model.headers.WithManifest, org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>, StreamingMessage

    @Immutable
    public final class BatchedEntityIdWithRevisions<E extends EntityIdWithRevision<?>>
    extends java.lang.Object
    implements org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>, StreamingMessage, org.eclipse.ditto.base.model.headers.WithManifest
    A list of EntityIdWithRevision batched together.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable

        org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends java.lang.Object>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,​T extends java.lang.Object>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends EntityIdWithRevision<?>>
      java.util.function.Function<org.eclipse.ditto.json.JsonObject,​org.eclipse.ditto.base.model.json.Jsonifiable<?>>
      deserializer​(java.util.function.Function<org.eclipse.ditto.json.JsonObject,​T> elementDeserializer)
      Create a deserializer from a deserializer of the elements.
      boolean equals​(java.lang.Object obj)  
      java.util.List<E> getElements()
      Retrieve the elements.
      java.lang.String getManifest()  
      int hashCode()  
      static <T extends EntityIdWithRevision<?>>
      BatchedEntityIdWithRevisions<T>
      of​(java.lang.Class<T> elementClass, java.util.List<T> elements)
      Create a BatchedEntityIdWithRevisions object.
      org.eclipse.ditto.json.JsonObject toJson()  
      java.lang.String toString()  
      static <T extends EntityIdWithRevision<?>>
      java.lang.String
      typeOf​(java.lang.Class<T> elementClass)
      Create a type name for the JSON deserializer based on the type of elements.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable

        getImplementedSchemaVersion, getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
    • Method Detail

      • of

        public static <T extends EntityIdWithRevision<?>> BatchedEntityIdWithRevisions<T> of​(java.lang.Class<T> elementClass,
                                                                                             java.util.List<T> elements)
        Create a BatchedEntityIdWithRevisions object.
        Type Parameters:
        T - type of the elements.
        Parameters:
        elementClass - class of the elements.
        elements - the batched elements.
        Returns:
        a new BatchedEntityIdWithRevisions object.
      • typeOf

        public static <T extends EntityIdWithRevision<?>> java.lang.String typeOf​(java.lang.Class<T> elementClass)
        Create a type name for the JSON deserializer based on the type of elements.
        Type Parameters:
        T - type of the elements.
        Parameters:
        elementClass - class of the elements.
        Returns:
        type name of BatchedEntityIdWithRevisions with elements of type T.
      • deserializer

        public static <T extends EntityIdWithRevision<?>> java.util.function.Function<org.eclipse.ditto.json.JsonObject,​org.eclipse.ditto.base.model.json.Jsonifiable<?>> deserializer​(java.util.function.Function<org.eclipse.ditto.json.JsonObject,​T> elementDeserializer)
        Create a deserializer from a deserializer of the elements.
        Type Parameters:
        T - type of the elements.
        Parameters:
        elementDeserializer - deserializer for the elements.
        Returns:
        deserializer for BatchedEntityIdWithRevisions with elements of type T.
      • getElements

        public java.util.List<E> getElements()
        Retrieve the elements.
        Returns:
        the elements.
      • toJson

        public org.eclipse.ditto.json.JsonObject toJson()
        Specified by:
        toJson in interface org.eclipse.ditto.base.model.json.Jsonifiable<E extends EntityIdWithRevision<?>>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getManifest

        @Nonnull
        public java.lang.String getManifest()
        Specified by:
        getManifest in interface org.eclipse.ditto.base.model.headers.WithManifest