Home | History | Annotate | Download | only in phonenumbers

Lines Matching refs:number

24  * The immutable match of a phone number within a piece of text. Matches may be found using
27 * <p>A match consists of the {@linkplain #number() phone number} as well as the
32 * match offsets, and the parsed number:
39 * // Find the first phone number match:
42 * // rawString() contains the phone number as it appears in the text.
49 * // number() returns the the same result as PhoneNumberUtil.{@link PhoneNumberUtil#parse parse()}
51 * util.parse(m.rawString(), country).equals(m.number());
61 /** The matched phone number. */
62 private final PhoneNumber number;
69 * @param number the matched phone number
71 PhoneNumberMatch(int start, String rawString, PhoneNumber number) {
75 if (rawString == null || number == null) {
80 this.number = number;
83 /** Returns the phone number matched by the receiver. */
84 public PhoneNumber number() {
85 return number;
88 /** Returns the start index of the matched phone number within the searched text. */
93 /** Returns the exclusive end index of the matched phone number within the searched text. */
98 /** Returns the raw string matched as a phone number in the searched text. */
105 return Arrays.hashCode(new Object[]{start, rawString, number});
118 number.equals(other.number);