analysis.lami: correctly handle Number (double, long etc.) type graphing
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.lami.core / src / org / eclipse / tracecompass / internal / provisional / analysis / lami / core / aspect / LamiEmptyAspect.java
1 /*******************************************************************************
2 * Copyright (c) 2015, 2016 EfficiOS Inc., Alexandre Montplaisir
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
10 package org.eclipse.tracecompass.internal.provisional.analysis.lami.core.aspect;
11
12 import java.util.Comparator;
13
14 import org.eclipse.jdt.annotation.NonNull;
15 import org.eclipse.jdt.annotation.Nullable;
16 import org.eclipse.tracecompass.internal.provisional.analysis.lami.core.module.LamiTableEntry;
17
18 /**
19 * Null aspect for LAMI tables, normally printing nothing in the corresponding
20 * cells. Should be access using {@link #INSTANCE}.
21 *
22 * @author Alexandre Montplaisir
23 */
24 public class LamiEmptyAspect extends LamiTableEntryAspect {
25
26 /** Singleton instance */
27 public static final LamiEmptyAspect INSTANCE = new LamiEmptyAspect();
28
29 private LamiEmptyAspect() {
30 super("", null); //$NON-NLS-1$
31 }
32
33 @Override
34 public boolean isContinuous() {
35 return false;
36 }
37
38 @Override
39 public @Nullable String resolveString(LamiTableEntry entry) {
40 return null;
41 }
42
43 @Override
44 public boolean isTimeStamp() {
45 return false;
46 }
47
48 @Override
49 public @Nullable Number resolveNumber(@NonNull LamiTableEntry entry) {
50 return null;
51 }
52
53 @Override
54 public Comparator<LamiTableEntry> getComparator() {
55 return (o1, o2) -> 0;
56 }
57
58 }
This page took 0.032771 seconds and 5 git commands to generate.