Package 

Class Values


  • 
    public final class Values
    
                        

    A factory of {@code Value}s.

    • Method Summary

      Modifier and Type Method Description
      static Value from(Message message) Converts the given message into a value.
      • Methods inherited from class java.lang.Object

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

      • from

         static Value from(Message message)

        Converts the given message into a value.

        If the message is equal to the default instance, it will be represented by a {@code MessageValue} with no fields. Otherwise, all the present fields are converted into {@code Value}s.