Java interpolate interpolateProp(final String source, final String propName, final String defValue)

Here you can find the source of interpolateProp(final String source, final String propName, final String defValue)

Description

interpolate Prop

License

Open Source License

Declaration

private static String interpolateProp(final String source, final String propName, final String defValue) 

Method Source Code

//package com.java2s;
/*/*from  www  .  ja v  a 2  s . com*/
 * Copyright (C) 2016 AT&T Intellectual Property. All rights reserved.
 * Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

public class Main {
    private static String interpolateProp(final String source, final String propName, final String defValue) {
        return source.replace("${" + propName + "}", System.getProperty(propName, defValue));
    }
}

Related

  1. interpolatefinal(double a, final double b, final double d)
  2. interpolateFloat(float f0, float f1, double mixer)
  3. interpolateFloat(float t, float a, float b)
  4. interpolateLinear(final float a, final float b, final float t)
  5. interpolateLinear(float lastState, float currentState, float ip)
  6. interpolateRotation(float par1, float par2, float par3)
  7. interpolateRotation(float prevRotation, float nextRotation, float partialTick)
  8. interpolateRound(double a, double b, double t)
  9. interpolateSmoothly(final float position, final float startPosition, final float endPosition, final float startValue, final float endValue)