org.apache.tinkerpop.gremlin.hadoop.structure.io

## Class ObjectWritable<T>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.hadoop.structure.io.ObjectWritable<T>

- All Implemented Interfaces:
    Serializable

      public final class ObjectWritable<T>
      extends Object
      implements Serializable

  Author:
    Marko A. Rodriguez (http://markorodriguez.com)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ObjectWritable()`
    `ObjectWritable(T t)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(ObjectWritable objectWritable)`
    `static <A> ObjectWritable<A>` | `empty()`
    `boolean` | `equals(Object other)`
    `T` | `get()`
    `static ObjectWritable<MapReduce.NullObject>` | `getNullObjectWritable()`
    `int` | `hashCode()`
    `boolean` | `isEmpty()`
    `void` | `readFields(DataInput input)`
    `void` | `set(T t)`
    `String` | `toString()`
    `void` | `write(DataOutput output)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ObjectWritable

          public ObjectWritable()

    - #### ObjectWritable

          public ObjectWritable(T t)

  - ### Method Detail

    - #### get

          public T get()

    - #### set

          public void set(T t)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### readFields

          public void readFields(DataInput input)
                          throws IOException

      Throws:
        `IOException`

    - #### write

          public void write(DataOutput output)
                     throws IOException

      Throws:
        `IOException`

    - #### compareTo

          public int compareTo(ObjectWritable objectWritable)

    - #### isEmpty

          public boolean isEmpty()

    - #### empty

          public static <A> ObjectWritable<A> empty()

    - #### equals

          public boolean equals(Object other)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getNullObjectWritable

          public static ObjectWritable<MapReduce.NullObject> getNullObjectWritable()

Copyright © 2013–2018 Apache Software Foundation. All rights reserved.