com.sinch.sdk.domains.numbers.models.v1.request.SearchPosition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.numbers.models.v1.request;
import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;
/** The pattern to apply to searches */
public class SearchPosition extends EnumDynamic {
/** Numbers that begin with the pattern entered */
public static final SearchPosition START = new SearchPosition("START");
/** The number ends with the pattern entered */
public static final SearchPosition END = new SearchPosition("END");
/** The pattern entered is contained somewhere in the number, the location being undefined */
public static final SearchPosition CONTAINS = new SearchPosition("CONTAINS");
private static final EnumSupportDynamic ENUM_SUPPORT =
new EnumSupportDynamic<>(
SearchPosition.class, SearchPosition::new, Arrays.asList(START, END, CONTAINS));
private SearchPosition(String value) {
super(value);
}
public static Stream values() {
return ENUM_SUPPORT.values();
}
public static SearchPosition from(String value) {
return ENUM_SUPPORT.from(value);
}
public static String valueOf(SearchPosition e) {
return ENUM_SUPPORT.valueOf(e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy