All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.solovyev.common.StartsWithFinder Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
/*
 * Copyright (c) 2009-2011. Created by serso aka se.solovyev.
 * For more information, please, contact [email protected]
 * or visit http://se.solovyev.org
 */

package org.solovyev.common;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* User: serso
* Date: 10/3/11
* Time: 12:49 AM
*/
public class StartsWithFinder implements JPredicate {

	private int i;

	@NotNull
	private final String targetString;

	public StartsWithFinder(@NotNull String targetString, int i) {
		this.targetString = targetString;
		this.i = i;
	}

	@Override
	public boolean apply(@Nullable String s) {
		return targetString.startsWith(s, i);
	}

	public void setI(int i) {
		this.i = i;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy