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

org.archive.url.CanonicalizeRules Maven / Gradle / Ivy

The newest version!
package org.archive.url;

// XXX it's "Canonicalizer" everywhere else but here
public class CanonicalizeRules implements CanonicalizerConstants {
	private int[] settings = new int[NUM_SETTINGS];

	public void setRule(int rule, int value) {
		settings[rule] = value;
	}
	public int getRule(int rule) {
		return settings[rule];
	}
	public boolean isSet(int rule, int value) {
		return (settings[rule] & value) == value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy