public class RemoveVersionFromURL extends Object implements com.google.common.base.Function<String,String>
NOTE: This only removes the tail end of the path if it contains a version
| Modifier and Type | Field and Description |
|---|---|
static RemoveVersionFromURL |
INSTANCE |
static String |
VERSION_REGEX |
| Constructor and Description |
|---|
RemoveVersionFromURL() |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String url) |
String |
removeAndApply(String url,
String version) |
public static final String VERSION_REGEX
public static final RemoveVersionFromURL INSTANCE
Copyright © 2017. All rights reserved.