Package io.grpc.xds

Class ConfigOrError<T>


  • final class ConfigOrError<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T config  
      (package private) java.lang.String errorDetail  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ConfigOrError​(java.lang.String errorDetail)  
      private ConfigOrError​(T config)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <T> ConfigOrError<T> fromConfig​(T config)
      Returns a ConfigOrError for the successfully converted data object.
      (package private) static <T> ConfigOrError<T> fromError​(java.lang.String errorDetail)
      Returns a ConfigOrError for the failure to convert the data object.
      • Methods inherited from class java.lang.Object

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

      • errorDetail

        final java.lang.String errorDetail
      • config

        final T config
    • Constructor Detail

      • ConfigOrError

        private ConfigOrError​(T config)
      • ConfigOrError

        private ConfigOrError​(java.lang.String errorDetail)
    • Method Detail

      • fromConfig

        static <T> ConfigOrError<T> fromConfig​(T config)
        Returns a ConfigOrError for the successfully converted data object.
      • fromError

        static <T> ConfigOrError<T> fromError​(java.lang.String errorDetail)
        Returns a ConfigOrError for the failure to convert the data object.