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

com.sdl.selenium.web.utils.OrderedProperties Maven / Gradle / Ivy

Go to download

Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications. (optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)

The newest version!
package com.sdl.selenium.web.utils;

import java.util.*;

public class OrderedProperties extends Properties {
    private Map entries = new LinkedHashMap();


    public String getProperty(String key) {
        return (String) entries.get(key);
    }

    public Enumeration keys() {
        return Collections.enumeration(entries.keySet());
    }

    public Enumeration elements() {
        return Collections.enumeration(entries.values());
    }

    public boolean contains(Object value) {
        return entries.containsValue(value);
    }

    public void putAll(Map map) {
        entries.putAll((Map) map);
    }

    public int size() {
        return entries.size();
    }

    public boolean isEmpty() {
        return entries.isEmpty();
    }

    public boolean containsKey(Object key) {
        return entries.containsKey(key);
    }

    public boolean containsValue(Object value) {
        return entries.containsValue(value);
    }

    public String get(Object key) {
        return (String)entries.get(key);
    }

    public Object put(Object key, Object value) {
        return entries.put( key, value);
    }

    public Object remove(Object key) {
        return entries.remove(key);
    }

    public void clear() {
        entries.clear();
    }

    public Set keySet() {
        return entries.keySet();
    }

    public Collection values() {
        return entries.values();
    }

    public Set> entrySet() {
        return entries.entrySet();
    }

    public boolean equals(Object o) {
        return entries.equals(o);
    }

    public int hashCode() {
        return entries.hashCode();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy