edu.pdx.cs399J.j2se15
Class TupleExample

java.lang.Object
  extended by edu.pdx.cs399J.j2se15.TupleExample

public class TupleExample
extends Object

Uses the generic Tuple class to return a host/port combination from a single method.

Since:
Summer 2005
Author:
David Whitlock

Constructor Summary
TupleExample()
           
 
Method Summary
static Tuple<String,Integer> getHostAndPort()
          Returns the host and port on which the server runs
static void main(String[] args)
          Main program that uses a Tuple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleExample

public TupleExample()
Method Detail

getHostAndPort

public static Tuple<String,Integer> getHostAndPort()
Returns the host and port on which the server runs


main

public static void main(String[] args)
Main program that uses a Tuple



Copyright © 2000-2009 Portland State University. All Rights Reserved.