tmf: Initial commit of Pcap Parser
[deliverable/tracecompass.git] / org.eclipse.linuxtools.pcap.core / src / org / eclipse / linuxtools / pcap / core / protocol / unknown / UnknownEndpoint.java
1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.pcap.core.protocol.unknown;
14
15 import org.eclipse.jdt.annotation.Nullable;
16 import org.eclipse.linuxtools.pcap.core.endpoint.ProtocolEndpoint;
17
18 /**
19 * Class that extends the {@link ProtocolEndpoint} class. It represents the
20 * endpoint for a protocol that is unknown.
21 *
22 * @author Vincent Perot
23 */
24 public class UnknownEndpoint extends ProtocolEndpoint {
25
26 /**
27 * Constructor of the {@link UnknownEndpoint} class. It takes a packet to
28 * get its endpoint. Since every packet has two endpoints (source and
29 * destination), the isSourceEndpoint parameter is used to specify which
30 * endpoint to take.
31 *
32 * @param packet
33 * The packet that contains the endpoints.
34 * @param isSourceEndpoint
35 * Whether to take the source or the destination endpoint of the
36 * packet.
37 */
38 public UnknownEndpoint(UnknownPacket packet, boolean isSourceEndpoint) {
39 super(packet, isSourceEndpoint);
40 }
41
42 @Override
43 public int hashCode() {
44 return 0;
45 }
46
47 @Override
48 public String toString() {
49 return EMPTY_STRING;
50 }
51
52 @Override
53 public boolean equals(@Nullable Object obj) {
54 return false;
55 }
56 }
This page took 0.031017 seconds and 5 git commands to generate.