Java Code Examples for ucar.nc2.Attribute#equals()
The following examples show how to use
ucar.nc2.Attribute#equals() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestNcmlReadersCompare.java From netcdf-java with BSD 3-Clause "New" or "Revised" License | 4 votes |
public boolean attsAreEqual(Attribute att1, Attribute att2) { if (att1.getShortName().equalsIgnoreCase(CDM.UNITS) && att2.getShortName().equalsIgnoreCase(CDM.UNITS)) { return att1.getStringValue().equals(att2.getStringValue()); } return att1.equals(att2); }
Example 2
Source File: TestCoordSysCompareMore.java From netcdf-java with BSD 3-Clause "New" or "Revised" License | 4 votes |
public boolean attsAreEqual(Attribute att1, Attribute att2) { if (att1.getShortName().equalsIgnoreCase(CDM.UNITS) && att2.getShortName().equalsIgnoreCase(CDM.UNITS)) { return att1.getStringValue().trim().equals(att2.getStringValue().trim()); } return att1.equals(att2); }
Example 3
Source File: TestNcmlReaderProblems.java From netcdf-java with BSD 3-Clause "New" or "Revised" License | 4 votes |
public boolean attsAreEqual(Attribute att1, Attribute att2) { if (att1.getShortName().equalsIgnoreCase(CDM.UNITS) && att2.getShortName().equalsIgnoreCase(CDM.UNITS)) { return att1.getStringValue().equals(att2.getStringValue()); } return att1.equals(att2); }