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

mockit.internal.expectations.argumentMatching.SubstringMatcher Maven / Gradle / Ivy

/*
 * Copyright (c) 2006 JMockit developers
 * This file is subject to the terms of the MIT license (see LICENSE.txt).
 */
package mockit.internal.expectations.argumentMatching;

import edu.umd.cs.findbugs.annotations.NonNull;

abstract class SubstringMatcher implements ArgumentMatcher {
    @NonNull
    final String substring;

    SubstringMatcher(@NonNull CharSequence substring) {
        this.substring = substring.toString();
    }

    @Override
    public final boolean same(@NonNull SubstringMatcher other) {
        return substring.equals(other.substring);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy