Package jenkins.model

Class IdStrategy.CaseSensitive

    • Constructor Detail

      • CaseSensitive

        public CaseSensitive()
    • Method Detail

      • idFromFilename

        public String idFromFilename​(@NonNull
                                     String filename)
        Description copied from class: IdStrategy
        Converts a filename into the corresponding id. This may contain filesystem unsafe characters.
        idFromFilename in class IdStrategy
        filename - the filename.
        the corresponding id.
      • equals

        public boolean equals​(@NonNull
                              String id1,
                              String id2)
        Description copied from class: IdStrategy
        Compare two IDs and return true IFF the two ids are the same. Normally we expect that this should be the same as, String) being equal to 0, however there may be a specific reason for going beyond that, such as sorting id's case insensitively while treating them as case sensitive. Subclasses may want to override this naïve implementation that calls compare(id1, id2) == 0 for a more performant implementation.
        equals in class IdStrategy
        id1 - the first id.
        id2 - the second id.
        true if and only if the two ids are the same.