EMMA Coverage Report (generated Tue Dec 20 11:01:01 KST 2005)
[all classes][org.apache.mina.protocol.vmpipe]

COVERAGE SUMMARY FOR SOURCE FILE [VmPipeAddress.java]

nameclass, %method, %block, %line, %
VmPipeAddress.java0%   (0/1)0%   (0/6)0%   (0/55)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class VmPipeAddress0%   (0/1)0%   (0/6)0%   (0/55)0%   (0/15)
VmPipeAddress (int): void 0%   (0/1)0%   (0/6)0%   (0/3)
compareTo (Object): int 0%   (0/1)0%   (0/7)0%   (0/1)
equals (Object): boolean 0%   (0/1)0%   (0/26)0%   (0/8)
getPort (): int 0%   (0/1)0%   (0/3)0%   (0/1)
hashCode (): int 0%   (0/1)0%   (0/3)0%   (0/1)
toString (): String 0%   (0/1)0%   (0/10)0%   (0/1)

1/*
2 * @(#) $Id: VmPipeAddress.java 357871 2005-12-20 01:56:40Z trustin $
3 */
4package org.apache.mina.protocol.vmpipe;
5 
6import java.net.SocketAddress;
7 
8/**
9 * A {@link SocketAddress} which represents in-VM pipe port number.
10 * 
11 * @author The Apache Directory Project (dev@directory.apache.org)
12 * @version $Rev: 357871 $, $Date: 2005-12-20 10:56:40 +0900 (Tue, 20 Dec 2005) $
13 */
14public class VmPipeAddress extends SocketAddress implements Comparable
15{
16    private static final long serialVersionUID = 3257844376976830515L;
17 
18        private final int port;
19 
20    /**
21     * Creates a new instance with the specifid port number.
22     */
23    public VmPipeAddress( int port )
24    {
25        this.port = port;
26    }
27 
28    /**
29     * Returns the port number.
30     */
31    public int getPort()
32    {
33        return port;
34    }
35 
36    public int hashCode()
37    {
38        return port;
39    }
40 
41    public boolean equals( Object o )
42    {
43        if( o == null )
44            return false;
45        if( this == o )
46            return true;
47        if( o instanceof VmPipeAddress )
48        {
49            VmPipeAddress that = ( VmPipeAddress ) o;
50            return this.port == that.port;
51        }
52 
53        return false;
54    }
55 
56    public int compareTo( Object o )
57    {
58        return this.port - ( ( VmPipeAddress ) o ).port;
59    }
60 
61    public String toString()
62    {
63        return "vm:" + port;
64    }
65}

[all classes][org.apache.mina.protocol.vmpipe]
EMMA 2.0.4217 (C) Vladimir Roubtsov