Example usage for org.apache.wicket.util.string Strings beforeLast

List of usage examples for org.apache.wicket.util.string Strings beforeLast

Introduction

In this page you can find the example usage for org.apache.wicket.util.string Strings beforeLast.

Prototype

public static String beforeLast(final String s, final char c) 

Source Link

Document

Returns everything before the last occurrence of the given character in s.

Usage

From source file:com.gfactor.web.wicket.loader.OsgiClassResolver.java

License:Apache License

private boolean classIsExportedByBundle(String classname, Bundle bundle) {
    List<String> exportedPackages = this.getExportedPackages(bundle);
    return exportedPackages.contains(Strings.beforeLast(classname, '.'));
}

From source file:org.wicketstuff.mergedresources.versioning.AbstractClasspathResourceVersionProvider.java

License:Apache License

protected String getResourcePath(final Class<?> scope, final String fileName) {
    final String file = Strings.beforeLast(scope.getName(), '.').replace('.', '/') + "/" + fileName;
    return file;//from  w w w  . j  a v  a 2 s  . c o m
}