Debian Codegraph @

java/gov/nist/javax/sip/header/AcceptLanguageList.java

raw
1 /*
2 * Conditions Of Use
3 *
4 * This software was developed by employees of the National Institute of
5 * Standards and Technology (NIST), an agency of the Federal Government.
6 * Pursuant to title 15 Untied States Code Section 105, works of NIST
7 * employees are not subject to copyright protection in the United States
8 * and are considered to be in the public domain. As a result, a formal
9 * license is not needed to use the software.
10 *
11 * This software is provided by NIST as a service and is expressly
12 * provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
13 * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
14 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
15 * AND DATA ACCURACY. NIST does not warrant or make any representations
16 * regarding the use of the software or the results thereof, including but
17 * not limited to the correctness, accuracy, reliability or usefulness of
18 * the software.
19 *
20 * Permission to use this software is contingent upon your acceptance
21 * of the terms of this agreement
22 *
23 * .
24 *
25 */
26 /*******************************************************************************
27 * Product of NIST/ITL Advanced Networking Technologies Division (ANTD). *
28 *******************************************************************************/
29 package gov.nist.javax.sip.header;
30 import javax.sip.header.*;
31
32 /**
33 * AcceptLanguageList: Strings together a list of AcceptLanguage SIPHeaders.
34 * @author M. Ranganathan
35 * @version 1.2 $Revision: 1.7 $ $Date: 2009/07/17 18:57:25 $
36 * @since 1.1
37 *
38 *
39 */
40 public class AcceptLanguageList extends SIPHeaderList<AcceptLanguage> {
41
42
43 private static final long serialVersionUID = -3289606805203488840L;
44
45 @Override
46 public Object clone() {
47 AcceptLanguageList retval = new AcceptLanguageList();
48 retval.clonehlist(this.hlist);
49 return retval;
50 }
51
52 public AcceptLanguageList() {
53 super(AcceptLanguage.class, AcceptLanguageHeader.NAME);
54 }
55
56 public AcceptLanguage getFirst() {
57 AcceptLanguage retval = (AcceptLanguage) super.getFirst();
58 if (retval != null)
59 return retval;
60 else
61 return new AcceptLanguage();
62 }
63
64 public AcceptLanguage getLast() {
65 AcceptLanguage retval = (AcceptLanguage) super.getLast();
66 if (retval != null)
67 return retval;
68 else
69 return new AcceptLanguage();
70 }
71 }