Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.print; |
| 18 | |
| 19 | import android.os.Parcel; |
| 20 | import android.os.Parcelable; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 21 | import android.text.TextUtils; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 22 | |
| 23 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 24 | * This class represents the description of a printer. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 25 | */ |
| 26 | public final class PrinterInfo implements Parcelable { |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 27 | |
Svetoslav Ganov | aec1417 | 2013-08-27 00:30:54 -0700 | [diff] [blame] | 28 | /** Printer status: the printer is idle and ready to print. */ |
| 29 | public static final int STATUS_IDLE = 1; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 30 | |
Svetoslav Ganov | aec1417 | 2013-08-27 00:30:54 -0700 | [diff] [blame] | 31 | /** Printer status: the printer is busy printing. */ |
| 32 | public static final int STATUS_BUSY = 2; |
| 33 | |
| 34 | /** Printer status: the printer is not available. */ |
| 35 | public static final int STATUS_UNAVAILABLE = 3; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 36 | |
| 37 | private PrinterId mId; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 38 | |
| 39 | private String mName; |
| 40 | |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 41 | private int mStatus; |
| 42 | |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 43 | private String mDescription; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 44 | |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 45 | private PrinterCapabilitiesInfo mCapabilities; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 46 | |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 47 | private PrinterInfo() { |
| 48 | /* do nothing */ |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 49 | } |
| 50 | |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 51 | private PrinterInfo(PrinterInfo prototype) { |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 52 | copyFrom(prototype); |
| 53 | } |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 54 | |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 55 | /** |
| 56 | * @hide |
| 57 | */ |
| 58 | public void copyFrom(PrinterInfo other) { |
Svetoslav | 651dd4e | 2013-09-12 14:37:47 -0700 | [diff] [blame] | 59 | if (this == other) { |
| 60 | return; |
| 61 | } |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 62 | mId = other.mId; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 63 | mName = other.mName; |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 64 | mStatus = other.mStatus; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 65 | mDescription = other.mDescription; |
| 66 | if (other.mCapabilities != null) { |
| 67 | if (mCapabilities != null) { |
| 68 | mCapabilities.copyFrom(other.mCapabilities); |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 69 | } else { |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 70 | mCapabilities = new PrinterCapabilitiesInfo(other.mCapabilities); |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 71 | } |
| 72 | } else { |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 73 | mCapabilities = null; |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 74 | } |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 75 | } |
| 76 | |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 77 | /** |
| 78 | * Get the globally unique printer id. |
| 79 | * |
| 80 | * @return The printer id. |
| 81 | */ |
| 82 | public PrinterId getId() { |
| 83 | return mId; |
| 84 | } |
| 85 | |
| 86 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 87 | * Get the printer name. |
| 88 | * |
| 89 | * @return The printer name. |
| 90 | */ |
| 91 | public String getName() { |
| 92 | return mName; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Gets the printer status. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 97 | * |
| 98 | * @return The status. |
| 99 | */ |
| 100 | public int getStatus() { |
| 101 | return mStatus; |
| 102 | } |
| 103 | |
| 104 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 105 | * Gets the printer description. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 106 | * |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 107 | * @return The description. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 108 | */ |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 109 | public String getDescription() { |
| 110 | return mDescription; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 114 | * Gets the printer capabilities. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 115 | * |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 116 | * @return The capabilities. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 117 | */ |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 118 | public PrinterCapabilitiesInfo getCapabilities() { |
| 119 | return mCapabilities; |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 120 | } |
| 121 | |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 122 | private PrinterInfo(Parcel parcel) { |
| 123 | mId = parcel.readParcelable(null); |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 124 | mName = parcel.readString(); |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 125 | mStatus = parcel.readInt(); |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 126 | mDescription = parcel.readString(); |
| 127 | mCapabilities = parcel.readParcelable(null); |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 128 | } |
| 129 | |
| 130 | @Override |
| 131 | public int describeContents() { |
| 132 | return 0; |
| 133 | } |
| 134 | |
| 135 | @Override |
| 136 | public void writeToParcel(Parcel parcel, int flags) { |
| 137 | parcel.writeParcelable(mId, flags); |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 138 | parcel.writeString(mName); |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 139 | parcel.writeInt(mStatus); |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 140 | parcel.writeString(mDescription); |
| 141 | parcel.writeParcelable(mCapabilities, flags); |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | @Override |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 145 | public int hashCode() { |
| 146 | final int prime = 31; |
| 147 | int result = 1; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 148 | result = prime * result + ((mId != null) ? mId.hashCode() : 0); |
| 149 | result = prime * result + ((mName != null) ? mName.hashCode() : 0); |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 150 | result = prime * result + mStatus; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 151 | result = prime * result + ((mDescription != null) ? mDescription.hashCode() : 0); |
| 152 | result = prime * result + ((mCapabilities != null) ? mCapabilities.hashCode() : 0); |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 153 | return result; |
| 154 | } |
| 155 | |
| 156 | @Override |
| 157 | public boolean equals(Object obj) { |
| 158 | if (this == obj) { |
| 159 | return true; |
| 160 | } |
| 161 | if (obj == null) { |
| 162 | return false; |
| 163 | } |
| 164 | if (getClass() != obj.getClass()) { |
| 165 | return false; |
| 166 | } |
| 167 | PrinterInfo other = (PrinterInfo) obj; |
| 168 | if (mId == null) { |
| 169 | if (other.mId != null) { |
| 170 | return false; |
| 171 | } |
| 172 | } else if (!mId.equals(other.mId)) { |
| 173 | return false; |
| 174 | } |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 175 | if (!TextUtils.equals(mName, other.mName)) { |
| 176 | return false; |
| 177 | } |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 178 | if (mStatus != other.mStatus) { |
| 179 | return false; |
| 180 | } |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 181 | if (!TextUtils.equals(mDescription, other.mDescription)) { |
| 182 | return false; |
| 183 | } |
| 184 | if (mCapabilities == null) { |
| 185 | if (other.mCapabilities != null) { |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 186 | return false; |
| 187 | } |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 188 | } else if (!mCapabilities.equals(other.mCapabilities)) { |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 189 | return false; |
| 190 | } |
| 191 | return true; |
| 192 | } |
| 193 | |
| 194 | @Override |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 195 | public String toString() { |
| 196 | StringBuilder builder = new StringBuilder(); |
| 197 | builder.append("PrinterInfo{"); |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 198 | builder.append("id=").append(mId); |
| 199 | builder.append(", name=").append(mName); |
| 200 | builder.append(", status=").append(mStatus); |
| 201 | builder.append(", description=").append(mDescription); |
| 202 | builder.append(", capabilities=").append(mCapabilities); |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 203 | builder.append("\"}"); |
| 204 | return builder.toString(); |
| 205 | } |
| 206 | |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 207 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 208 | * Builder for creating of a {@link PrinterInfo}. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 209 | */ |
| 210 | public static final class Builder { |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 211 | private final PrinterInfo mPrototype; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 212 | |
| 213 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 214 | * Constructor. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 215 | * |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 216 | * @param printerId The printer id. Cannot be null. |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 217 | * @param name The printer name. Cannot be empty. |
| 218 | * @param status The printer status. Must be a valid status. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 219 | */ |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 220 | public Builder(PrinterId printerId, String name, int status) { |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 221 | if (printerId == null) { |
| 222 | throw new IllegalArgumentException("printerId cannot be null."); |
| 223 | } |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 224 | if (TextUtils.isEmpty(name)) { |
| 225 | throw new IllegalArgumentException("name cannot be empty."); |
| 226 | } |
| 227 | if (!isValidStatus(status)) { |
| 228 | throw new IllegalArgumentException("status is invalid."); |
| 229 | } |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 230 | mPrototype = new PrinterInfo(); |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 231 | mPrototype.mId = printerId; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 232 | mPrototype.mName = name; |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 233 | mPrototype.mStatus = status; |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Constructor. |
| 238 | * |
Svetoslav | 269403b | 2013-08-14 17:31:04 -0700 | [diff] [blame] | 239 | * @param other Other info from which to start building. |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 240 | */ |
Svetoslav | 269403b | 2013-08-14 17:31:04 -0700 | [diff] [blame] | 241 | public Builder(PrinterInfo other) { |
| 242 | mPrototype = new PrinterInfo(); |
| 243 | mPrototype.copyFrom(other); |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 244 | } |
| 245 | |
| 246 | /** |
Svetoslav Ganov | aec1417 | 2013-08-27 00:30:54 -0700 | [diff] [blame] | 247 | * Sets the printer status. |
| 248 | * |
| 249 | * @param status The status. |
| 250 | * @return This builder. |
| 251 | * |
| 252 | * @see PrinterInfo#STATUS_IDLE |
| 253 | * @see PrinterInfo#STATUS_BUSY |
| 254 | * @see PrinterInfo#STATUS_UNAVAILABLE |
| 255 | */ |
| 256 | public Builder setStatus(int status) { |
| 257 | mPrototype.mStatus = status; |
| 258 | return this; |
| 259 | } |
| 260 | |
| 261 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 262 | * Sets the printer name. |
| 263 | * |
| 264 | * @param name The name. |
| 265 | * @return This builder. |
| 266 | */ |
| 267 | public Builder setName(String name) { |
| 268 | mPrototype.mName = name; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 269 | return this; |
| 270 | } |
| 271 | |
| 272 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 273 | * Sets the printer description. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 274 | * |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 275 | * @param description The description. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 276 | * @return This builder. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 277 | */ |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 278 | public Builder setDescription(String description) { |
| 279 | mPrototype.mDescription = description; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 280 | return this; |
| 281 | } |
| 282 | |
| 283 | /** |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 284 | * Sets the printer capabilities. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 285 | * |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 286 | * @param capabilities The capabilities. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 287 | * @return This builder. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 288 | */ |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 289 | public Builder setCapabilities(PrinterCapabilitiesInfo capabilities) { |
| 290 | mPrototype.mCapabilities = capabilities; |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 291 | return this; |
| 292 | } |
| 293 | |
| 294 | /** |
Svetoslav Ganov | 55b409a | 2013-07-31 17:25:13 -0700 | [diff] [blame] | 295 | * Crates a new {@link PrinterInfo}. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 296 | * |
| 297 | * @return A new {@link PrinterInfo}. |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 298 | */ |
Svetoslav | 651dd4e | 2013-09-12 14:37:47 -0700 | [diff] [blame] | 299 | public PrinterInfo build() { |
Svetoslav Ganov | a002715 | 2013-06-25 14:59:53 -0700 | [diff] [blame] | 300 | return new PrinterInfo(mPrototype); |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 301 | } |
| 302 | |
Svetoslav Ganov | 798bed6 | 2013-08-11 12:29:39 -0700 | [diff] [blame] | 303 | private boolean isValidStatus(int status) { |
Svetoslav Ganov | aec1417 | 2013-08-27 00:30:54 -0700 | [diff] [blame] | 304 | return (status == STATUS_IDLE |
| 305 | || status == STATUS_IDLE |
| 306 | || status == STATUS_UNAVAILABLE); |
Svetoslav Ganov | 4b9a4d1 | 2013-06-11 15:20:06 -0700 | [diff] [blame] | 307 | } |
| 308 | } |
| 309 | |
| 310 | public static final Parcelable.Creator<PrinterInfo> CREATOR = |
| 311 | new Parcelable.Creator<PrinterInfo>() { |
| 312 | @Override |
| 313 | public PrinterInfo createFromParcel(Parcel parcel) { |
| 314 | return new PrinterInfo(parcel); |
| 315 | } |
| 316 | |
| 317 | @Override |
| 318 | public PrinterInfo[] newArray(int size) { |
| 319 | return new PrinterInfo[size]; |
| 320 | } |
| 321 | }; |
| 322 | } |