*/
private final List<IChannelInfo> fChannels = new ArrayList<IChannelInfo>();
private boolean fIsKernel = false;
- private String fBufferType = null;
+ private BufferType fBufferType = null;
// ------------------------------------------------------------------------
// Constructors
}
}
fIsKernel = other.fIsKernel;
+ fBufferType = other.fBufferType;
}
@Override
int result = super.hashCode();
result = prime * result + fChannels.hashCode();
result = prime * result + (fIsKernel ? 1231 : 1237);
+ result = prime * result + ((fBufferType == null) ? 0 : (fBufferType.ordinal() + 1));
return result;
}
if (fIsKernel != other.fIsKernel) {
return false;
}
+ if (fBufferType != other.fBufferType) {
+ return false;
+ }
return true;
}
@Override
- public String getBufferType() {
+ public BufferType getBufferType() {
if (fIsKernel) {
- return BufferTypeConstants.BUFFER_SHARED;
+ return BufferType.BUFFER_SHARED;
}
return fBufferType;
}
@Override
- public void setBufferType(String bufferType) {
+ public void setBufferType(BufferType bufferType) {
fBufferType = bufferType;
}
}
output.append(",isKernel=");
output.append(String.valueOf(fIsKernel));
+ if (!fBufferType.equals(BufferType.BUFFER_TYPE_UNKNOWN) && !fBufferType.equals(BufferType.BUFFER_SHARED)) {
+ output.append(",BufferType=");
+ output.append(fBufferType);
+ }
output.append(")]");
return output.toString();
}