move interface to primitive types
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package com.minres.scviewer.database;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
|
@ -24,7 +24,7 @@ public interface IWaveform extends IHierNode {
|
||||
*
|
||||
* @return the id
|
||||
*/
|
||||
public Long getId();
|
||||
public long getId();
|
||||
|
||||
/**
|
||||
* Checks if is same.
|
||||
@ -47,7 +47,7 @@ public interface IWaveform extends IHierNode {
|
||||
* @param time the time
|
||||
* @return the events at time
|
||||
*/
|
||||
public IEvent[] getEventsAtTime(Long time);
|
||||
public IEvent[] getEventsAtTime(long time);
|
||||
|
||||
/**
|
||||
* Gets the events before time.
|
||||
@ -55,7 +55,7 @@ public interface IWaveform extends IHierNode {
|
||||
* @param time the time
|
||||
* @return the events before time
|
||||
*/
|
||||
public IEvent[] getEventsBeforeTime(Long time);
|
||||
public IEvent[] getEventsBeforeTime(long time);
|
||||
|
||||
/**
|
||||
* Gets the type.
|
||||
|
@ -23,7 +23,7 @@ public interface IWaveformDb extends IHierNode {
|
||||
*
|
||||
* @return the max time
|
||||
*/
|
||||
public Long getMaxTime();
|
||||
public long getMaxTime();
|
||||
|
||||
/**
|
||||
* Gets the stream by name.
|
||||
|
@ -69,7 +69,7 @@ public interface IWaveformDbLoader {
|
||||
*
|
||||
* @return the max time
|
||||
*/
|
||||
public Long getMaxTime();
|
||||
public long getMaxTime();
|
||||
|
||||
/**
|
||||
* Gets the all waves.
|
||||
|
@ -45,7 +45,7 @@ public class WaveformDb extends HierNode implements IWaveformDb, PropertyChangeL
|
||||
private Map<String, IWaveform> waveforms;
|
||||
|
||||
/** The max time. */
|
||||
private Long maxTime;
|
||||
private long maxTime = -1;
|
||||
|
||||
/**
|
||||
* Bind.
|
||||
@ -90,7 +90,7 @@ public class WaveformDb extends HierNode implements IWaveformDb, PropertyChangeL
|
||||
* @return the max time
|
||||
*/
|
||||
@Override
|
||||
public Long getMaxTime() {
|
||||
public long getMaxTime() {
|
||||
return maxTime;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ public interface ITx extends Comparable<ITx> {
|
||||
*
|
||||
* @return the id
|
||||
*/
|
||||
public Long getId();
|
||||
public long getId();
|
||||
|
||||
/**
|
||||
* Gets the stream.
|
||||
@ -46,14 +46,14 @@ public interface ITx extends Comparable<ITx> {
|
||||
*
|
||||
* @return the begin time
|
||||
*/
|
||||
public Long getBeginTime();
|
||||
public long getBeginTime();
|
||||
|
||||
/**
|
||||
* Gets the end time.
|
||||
*
|
||||
* @return the end time
|
||||
*/
|
||||
public Long getEndTime();
|
||||
public long getEndTime();
|
||||
|
||||
/**
|
||||
* Gets the attributes.
|
||||
|
@ -22,7 +22,7 @@ public interface ITxEvent extends IEvent {
|
||||
*
|
||||
* @return the time
|
||||
*/
|
||||
public Long getTime();
|
||||
public long getTime();
|
||||
|
||||
/**
|
||||
* Gets the transaction.
|
||||
|
Reference in New Issue
Block a user