接口 OriginLookup<K>

    • 方法详细资料

      • getOrigin

        Origin getOrigin​(K key)
        Return the origin of the given key or null if the origin cannot be determined.
        参数:
        key - the key to lookup
        返回:
        the origin of the key or null
      • getOrigin

        static <K> Origin getOrigin​(Object source,
                                    K key)
        Attempt to lookup the origin from the given source. If the source is not a OriginLookup or if an exception occurs during lookup then null is returned.
        类型参数:
        K - the key type
        参数:
        source - the source object
        key - the key to lookup
        返回:
        an Origin or null