All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jsoftware.impl.DirectoryPatchScanner Maven / Gradle / Ivy

package org.jsoftware.impl;

import org.jsoftware.config.Patch;

import java.io.Serializable;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class DirectoryPatchScanner extends SimplePatchScanner implements Serializable {
	private static final long serialVersionUID = 2156150612939870399L;

	@Override
	protected void sortAll(List allPatchList) {
	}

	@Override
	protected void sortDirectory(List dirPatchList) {
		Collections.sort(dirPatchList, new Comparator() {
			public int compare(Patch o1, Patch o2) {
				return o1.getName().compareTo(o2.getName());
			}
		});
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy