tdcommon/src/main/java/thredds/server/catalog/builder/DatasetScanConfigBuilder.java
protected Optional<Boolean> readFilesSort(Element sorterElem) {
    String increasingString = sorterElem.getAttributeValue("increasing");
    if (increasingString != null) {
      if (increasingString.equalsIgnoreCase("true"))
        return Optional.of(true);
      else if (increasingString.equalsIgnoreCase("false"))
        return Optional.of(false);
    }
    return Optional.empty();
  }
protected Optional<Boolean> readFilesSort(Element sorterElem) {
    String increasingString = sorterElem.getAttributeValue("increasing");
    if (increasingString != null) {
      if (increasingString.equalsIgnoreCase("true"))
        return Optional.of(true);
      else if (increasingString.equalsIgnoreCase("false"))
        return Optional.of(false);
    }
    return Optional.empty();
  }
protected Optional < Boolean > readFilesSort ( Element sorterElem ) { String increasingString = sorterElem . getAttributeValue ( "increasing" ) ; if ( increasingString != null ) { if ( increasingString . equalsIgnoreCase ( "true" ) ) return Optional . of ( true ) ; else if ( increasingString . equalsIgnoreCase ( "false" ) ) return Optional . of ( false ) ; } return Optional . empty ( ) ; }
/*
<xsd:element name="sort">
<xsd:complexType>
<xsd:choice>
<xsd:element name="lexigraphicByName">
<xsd:complexType>
<xsd:attribute name="increasing" type="xsd:boolean"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="crawlableDatasetSorterImpl" minOccurs="0" type="UserImplType"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
/ * <xsd : element name = sort > <xsd : complexType > <xsd : choice > <xsd : element name = lexigraphicByName > <xsd : complexType > <xsd : attribute name = increasing type = xsd : boolean / > < / xsd : complexType > < / xsd : element > <xsd : element name = crawlableDatasetSorterImpl minOccurs = 0 type = UserImplType / > < / xsd : choice > < / xsd : complexType > < / xsd : element >