com.thebund1st.daming.core.StaticSmsVerificationScopePattern Maven / Gradle / Ivy
package com.thebund1st.daming.core;
import lombok.RequiredArgsConstructor;
import java.util.List;
@RequiredArgsConstructor
public class StaticSmsVerificationScopePattern implements SmsVerificationScopePattern {
private final List valid;
@Override
public boolean matches(SmsVerificationScope value) {
return valid.stream().anyMatch(s -> s.equals(value));
}
}