Coverage Report - org.mockftpserver.core.util.HostAndPort
 
Classes in this File Line Coverage Branch Coverage Complexity
HostAndPort
100%
4/4
N/A
1
 
 1  
 /*
 2  
  * Copyright 2009 the original author or authors.
 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  
 package org.mockftpserver.core.util;
 17  
 
 18  
 import java.net.InetAddress;
 19  
 
 20  
 /**
 21  
  * A data-only (transfer) object representing a host (InetAddress) and port number
 22  
  * that together uniquely identify an endpoint for a socket connection.
 23  
  *
 24  
  * This class contains two public properties: host (java.net.InetAddress) and port (int).
 25  
  *
 26  
  * @author Chris Mair
 27  
  * @version : $ - :  $
 28  
  */
 29  
 public class HostAndPort {
 30  
     public InetAddress host;
 31  
     public int port;
 32  
 
 33  
     /**
 34  
      * Construct a new instance with the specified host and port
 35  
      * @param host - the InetAddress host
 36  
      * @param port - the port number
 37  
      */
 38  37
     public HostAndPort(InetAddress host, int port) {
 39  37
         this.host = host;
 40  37
         this.port = port;
 41  37
     }
 42  
 }