Class WritableValueRetriever


  • public class WritableValueRetriever
    extends java.lang.Object
    Utilities for datavec's Writable this just perform basic conversion between unknown objects and Writable types.
    Author:
    Adam Gibson
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getUnderlyingValue​(org.datavec.api.writable.Writable writable)
      Get the underlying value fro the given Writable
      static org.datavec.api.writable.Writable writableFromValue​(java.lang.Object input)
      Create a Writable from the given value If an input type is invalid, an IllegalArgumentException will be thrown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WritableValueRetriever

        public WritableValueRetriever()
    • Method Detail

      • writableFromValue

        public static org.datavec.api.writable.Writable writableFromValue​(java.lang.Object input)
        Create a Writable from the given value If an input type is invalid, an IllegalArgumentException will be thrown
        Parameters:
        input - the input object
        Returns:
        writable
      • getUnderlyingValue

        public static java.lang.Object getUnderlyingValue​(org.datavec.api.writable.Writable writable)
        Get the underlying value fro the given Writable
        Parameters:
        writable - the writable to get the value for
        Returns:
        the underlying value represnted by the Writable