Class Mocks.ResourceResult

  • Enclosing interface:
    Mocks

    public static class Mocks.ResourceResult
    extends java.lang.Object
    A resource identifier and resource state.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Optional<java.lang.String> id
      A resource identifier
      java.lang.Object state
      A resource state
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceResult​(java.util.Optional<java.lang.String> id, java.lang.Object state)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Mocks.ResourceResult of​(java.util.Optional<java.lang.String> id, java.lang.Object state)  
      • Methods inherited from class java.lang.Object

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

      • id

        public final java.util.Optional<java.lang.String> id
        A resource identifier
      • state

        public final java.lang.Object state
        A resource state
    • Constructor Detail

      • ResourceResult

        public ResourceResult​(java.util.Optional<java.lang.String> id,
                              java.lang.Object state)
        Parameters:
        id - the ID may be empty for component resources
        state - the state can be either a POJO or a Map
    • Method Detail

      • of

        public static Mocks.ResourceResult of​(java.util.Optional<java.lang.String> id,
                                              java.lang.Object state)