Simpler version of {@link android.os.Bundle#get(String)} which infers the target type.
350257
@SuppressWarnings({"unchecked", "UnusedDeclaration"})
  // Checked by runtime cast. Public API.
  public static <T> T get(Bundle bundle, String key) {
    return (T) bundle.get(key);
  }
877700
public java.lang.String getGet() {
    java.lang.Object ref = "";
    if (patternCase_ == 2) {
      ref = pattern_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (patternCase_ == 2) {
        pattern_ = s;
      }
      return s;
    }
  }
1190737
public static final String getString(Type type) {
        if (type instanceof GenericObjectType) {
            return ((GenericObjectType) type).toString(true);
        } else if (type instanceof ArrayType) {
            return TypeCategory.asString((ArrayType) type);
        } else {
            return type.toString();
        }
    }
402311
public static String getText(String key, ResourceBundle bundle)
    {
        try
        {
            return  bundle.getString(key);
        }
        catch (MissingResourceException ex)
        {
            return key;
        }
    }
321526
@Override
  public <T extends Feature<T>> T get(FeatureType<T> featureType) {
    @SuppressWarnings("unchecked")
    T feature = (T) featuresByType.get(featureType.type());
    if (feature != null) {
      return feature;
    }
    return featureType.testDefault(this);
  }
791392
public DeliveryStreamType getType()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getType");
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getType", DeliveryStreamType.ANYCAST_TARGET);
    return DeliveryStreamType.ANYCAST_TARGET;
  }
911103
public T get() {
        Object object = null;
        try {
            ProxyTarget target = locator.locateProxyTarget();
            if (target != null) {
                try {
                    object = target.getTarget();
                } finally {
                    if (target instanceof ReleasableProxyTarget) {
                        // Sadly we don't know much what is done with the target by the caller, so we just release it
                        // right now
                        ((ReleasableProxyTarget) target).releaseTarget();
                    }
                }
            }
        } catch (RuntimeException e) {
            LOG.trace("locating target failed, will return null then", e);
        }
        return type.cast(object);
    }
805905
private static <T> SimonType getValue(Class<? extends T> type, SimonTypeMatcher<T> typeMatcher) {
		SimonType simonType = SIMON_TYPE_CACHE.get(type);
		if (simonType == null) {
			for (SimonType lSimonType : SimonType.values()) {
				if (typeMatcher.matches(type, lSimonType)) {
					simonType = lSimonType;
					if (!Proxy.isProxyClass(type)) {
						SIMON_TYPE_CACHE.put(type, simonType);
					}
					break;
				}
			}
		}
		return simonType;
	}
1154818
public static <T> TypeReference<T> get(Class<T> type) {
		return new SimpleTypeReference<T>(type);
	}
839684
int getResponseCodeFromBundle(@NotNull Bundle b) {
        Object o = b.get(RESPONSE_CODE);
        if (o == null) {
            Logger.d("Bundle with null response code, assuming OK (known issue)");
            return BILLING_RESPONSE_RESULT_OK;
        } else if (o instanceof Integer) return ((Integer) o).intValue();
        else if (o instanceof Long) return (int) ((Long) o).longValue();
        else {
            Logger.e("In-app billing error: ", "Unexpected type for bundle response code.");
            Logger.e("In-app billing error: ", o.getClass().getName());
            throw new RuntimeException("Unexpected type for bundle response code: " + o.getClass().getName());
        }
    }
670658
private String get_target_type (String ttype_tname)
  {
    String[] split;
    try {
      split = ttype_tname.split(LOGGING_SEPARATOR);
    } catch (Exception e) {
      return "unknown";
    }
    return split[0];
  }
1301838
public static Object getExtraObject(Activity context, String key) {
        Object param = null;
        Bundle bundle = context.getIntent().getExtras();
        if (bundle != null) {
            param = bundle.get(key);
        }
        return param;
    }
449319
@JsonValue
	@SuppressWarnings("unchecked")
	public <T> T get(){
		return (T) (this.isString ? (String)this.value : (Number)this.value);
	}
563211
@Override
    protected Type getType(final int mKey1, final int mKey2) throws TTXPathException {

        Type type1 = Type.getType(mKey1).getPrimitiveBaseType();
        Type type2 = Type.getType(mKey2).getPrimitiveBaseType();
        return Type.getLeastCommonType(type1, type2);

    }
1005645
public Object parseType(String input, Type targetType) {
        return typeParser.parseType(input, targetType);
    }
962292
private static String get(Type type, Annotation annotation) {
    type = boxIfPrimitive(type);
    if (annotation == null && type instanceof Class && !((Class<?>) type).isArray()) {
      return ((Class<?>) type).getName();
    }
    StringBuilder result = new StringBuilder();
    if (annotation != null) {
      result.append(annotation).append("/");
    }
    typeToString(type, result, true);
    return result.toString();
  }
1176235
public <T> T get(Class<T> type) {
        return get(type.getName(), type);
    }