KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > legacy > connection > USLPort


1 /*
2  * @(#)USLPort.java 1.6 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.legacy.connection;
9
10 public class USLPort
11 {
12     private String JavaDoc type;
13     private int port;
14
15     public USLPort (String JavaDoc type, int port)
16     {
17     this.type = type;
18     this.port = port;
19     }
20
21     public String JavaDoc getType () { return type; }
22     public int getPort () { return port; }
23     public String JavaDoc toString () { return type + ":" + port; }
24 }
25
26 // End of file.
27

28
Popular Tags