APISonar


com.thoughtworks.go.domain.PipelineTimelineEntry.Revision.date

> com > thoughtworks > go > domain > PipelineTimelineEntry > Revision > date
com APIs thoughtworks APIs go APIs domain APIs PipelineTimelineEntry APIs Revision APIs date APIs

Example 1
private StageIdFaninScmMaterialPair getSmallestScmRevision(Collection<StageIdFaninScmMaterialPair> scmWithDiffVersions) {
        ArrayList<StageIdFaninScmMaterialPair> materialPairList = new ArrayList<>(scmWithDiffVersions);
        materialPairList.sort((pair1, pair2) -> {
            final PipelineTimelineEntry.Revision rev1 = pair1.faninScmMaterial.revision;
            final PipelineTimelineEntry.Revision rev2 = pair2.faninScmMaterial.revision;
            return rev1.date.compareTo(rev2.date);
        });
        return materialPairList.get(0);
    }