Utilities.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:hive-phoenix-handler 作者:
@Override
protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out) {
  java.util.Collection oldO = (java.util.Collection) oldInstance;
  java.util.Collection newO = (java.util.Collection) newInstance;

  if (newO.size() != 0) {
    out.writeStatement(new Statement(oldInstance, "clear", new Object[] {}));
  }
  for (Iterator i = oldO.iterator(); i.hasNext();) {
    out.writeStatement(new Statement(oldInstance, "add", new Object[] {i.next()}));
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号