com.ibatis.common.ArraySet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbatis Show documentation
Show all versions of jbatis Show documentation
The jBATIS persistence framework will help you to significantly reduce the amount of Java code that you normally need to access a relational database. iBATIS simply maps JavaBeans to SQL statements using a very simple XML descriptor.
The newest version!
/*-
* Copyright 2009-2019 Owl Group
* All rights reserved.
*/
package com.ibatis.common;
import java.util.ArrayList;
import java.util.Set;
/**
* ArraySet for internal use only
*
* Date: 2018-05-31
*
* @author Song Sun
* @version 1.0
*/
public class ArraySet extends ArrayList implements Set {
private static final long serialVersionUID = 1L;
public ArraySet() {
}
@Override
public boolean add(E e) {
if (contains(e)) {
return false;
}
return super.add(e);
}
}