[jboss-cvs] JBossCache/src/org/jboss/cache/pojo/notification ...
Jason Thomas Greene
jgreene at jboss.com
Mon Apr 23 09:09:21 EDT 2007
User: jgreene
Date: 07/04/23 09:09:21
Added: src/org/jboss/cache/pojo/notification
ArrayModifyNotification.java
Log:
Add array placeholder to API
Revision Changes Path
1.1 date: 2007/04/23 13:09:21; author: jgreene; state: Exp;JBossCache/src/org/jboss/cache/pojo/notification/ArrayModifyNotification.java
Index: ArrayModifyNotification.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.cache.pojo.notification;
import java.util.List;
/**
* A notification that indicates an array was modified.
*
* @author Jason T. Greene
*/
public final class ArrayModifyNotification extends Notification
{
private final int index;
private final Object value;
public ArrayModifyNotification(NotificationContext context, Object source, int index, Object value, Phase phase, boolean local)
{
super(context, source, phase, local);
this.index = index;
this.value = value;
}
/**
* Gets the index of the change.
*
* @return the index of this change
*/
public Object getIndex()
{
return index;
}
/**
* Gets the new value for this change.
*
* @return the new value.
*/
public Object getValue()
{
return value;
}
}
More information about the jboss-cvs-commits
mailing list