congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.commons.jcs.engine.control.group
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.commons.jcs.engine.control.group

Best Java code snippets using org.apache.commons.jcs.engine.control.group (Showing top 20 results out of 315)

origin: org.apache.commons/commons-jcs-core

/**
 * @return A hash code based on the hash code of @ #groupid} and {@link #attrName}.
 */
@Override
public int hashCode()
{
  if (attrName == null)
  {
    return groupId.hashCode();
  }
  return groupId.hashCode() ^ attrName.hashCode();
}
origin: org.apache.tomee.patch/commons-jcs-core

/**
 * Internal method used for group functionality.
 * <p>
 * @param cacheName
 * @param group
 * @param name
 * @return GroupAttrName
 */
private GroupAttrName<String> getGroupAttrName( String cacheName, String group, String name )
{
  GroupId gid = new GroupId( cacheName, group );
  return new GroupAttrName<String>( gid, name );
}
origin: org.apache.commons/commons-jcs-core

/**
 * Tests object equality.
 * @param obj The <code>GroupAttrName</code> instance to test.
 * @return Whether equal.
 */
@Override
public boolean equals( Object obj )
{
  if ( obj == null || !( obj instanceof GroupAttrName ) )
  {
    return false;
  }
  GroupAttrName<?> to = (GroupAttrName<?>) obj;
  if (groupId.equals( to.groupId ))
  {
    if (attrName == null && to.attrName == null)
    {
      return true;
    }
    else if (attrName == null || to.attrName == null)
    {
      return false;
    }
    return  attrName.equals( to.attrName );
  }
  return false;
}
origin: org.apache.commons/commons-jcs-core

/**
 * Gets the set of keys of objects currently in the group.
 * <p>
 * @param group
 * @return A Set of keys.
 */
@Override
public Set<K> getGroupKeys( String group )
{
  Set<K> groupKeys = new HashSet<K>();
  GroupId groupId = new GroupId( this.getCacheControl().getCacheName(), group );
  for (GroupAttrName<K> gan : this.getCacheControl().getKeySet())
  {
    if (gan.groupId.equals( groupId ))
    {
      groupKeys.add( gan.attrName );
    }
  }
  return groupKeys;
}
origin: org.apache.commons/commons-jcs-core

/**
 * Internal method used for group functionality.
 * <p>
 *
 * @param cacheName
 * @param group
 * @param name
 * @return GroupAttrName
 */
private GroupAttrName<String> getGroupAttrName(String cacheName, String group, String name)
{
  GroupId gid = new GroupId(cacheName, group);
  return new GroupAttrName<String>(gid, name);
}
origin: org.apache.tomee.patch/commons-jcs-core

/**
 * Gets the set of keys of objects currently in the group.
 * <p>
 * @param group
 * @return A Set of keys.
 */
@Override
public Set<K> getGroupKeys( String group )
{
  Set<K> groupKeys = new HashSet<K>();
  GroupId groupId = new GroupId( this.getCacheControl().getCacheName(), group );
  for (GroupAttrName<K> gan : this.getCacheControl().getKeySet())
  {
    if (gan.groupId.equals( groupId ))
    {
      groupKeys.add( gan.attrName );
    }
  }
  return groupKeys;
}
origin: org.apache.tomee.patch/commons-jcs-core

/**
 * Tests object equality.
 * @param obj The <code>GroupAttrName</code> instance to test.
 * @return Whether equal.
 */
@Override
public boolean equals( Object obj )
{
  if ( obj == null || !( obj instanceof GroupAttrName ) )
  {
    return false;
  }
  GroupAttrName<?> to = (GroupAttrName<?>) obj;
  if (groupId.equals( to.groupId ))
  {
    if (attrName == null && to.attrName == null)
    {
      return true;
    }
    else if (attrName == null || to.attrName == null)
    {
      return false;
    }
    return  attrName.equals( to.attrName );
  }
  return false;
}
origin: org.apache.tomee.patch/commons-jcs-core

/**
 * @return A hash code based on the hash code of @ #groupid} and {@link #attrName}.
 */
@Override
public int hashCode()
{
  if (attrName == null)
  {
    return groupId.hashCode();
  }
  return groupId.hashCode() ^ attrName.hashCode();
}
origin: org.apache.commons/commons-jcs-core

/**
 * Internal method used for group functionality.
 * <p>
 *
 * @param cacheName
 * @param group
 * @param name
 * @return GroupAttrName
 */
private GroupAttrName<String> getGroupAttrName(String cacheName, String group, String name)
{
  GroupId gid = new GroupId(cacheName, group);
  return new GroupAttrName<String>(gid, name);
}
origin: org.apache.tomee.patch/commons-jcs-core

if ( k instanceof GroupAttrName && ( (GroupAttrName<?>) k ).groupId.equals( key ) )
origin: org.apache.tomee.patch/commons-jcs-core

log.error( "GroupID hashcode=" + name.groupId.hashCode() );
log.error( "GroupID.class=" + name.groupId.getClass() );
log.error( "AttrName hashcode=" + name.attrName.hashCode() );
origin: org.apache.commons/commons-jcs-core

/**
 * Internal method used for group functionality.
 * <p>
 * @param group
 * @param name
 * @return GroupAttrName
 */
private GroupAttrName<K> getGroupAttrName( String group, K name )
{
  GroupId gid = new GroupId( this.getCacheControl().getCacheName(), group );
  return new GroupAttrName<K>( gid, name );
}
origin: org.apache.commons/commons-jcs-core

if (k instanceof GroupAttrName && ((GroupAttrName<?>) k).groupId.equals(key))
origin: org.tinygroup/org.tinygroup.jcscache2

private GroupAttrName<String> getGroupAttrName(String group, String name) {
  GroupId gid = new GroupId(groupCacheAccess.getCacheControl()
      .getCacheName(), group);
  return new GroupAttrName<String>(gid, name);
}
origin: org.apache.commons/commons-jcs-core

if (k instanceof GroupAttrName && ((GroupAttrName<?>) k).groupId.equals(key))
origin: org.apache.tomee.patch/commons-jcs-core

/**
 * Internal method used for group functionality.
 * <p>
 * @param group
 * @param name
 * @return GroupAttrName
 */
private GroupAttrName<K> getGroupAttrName( String group, K name )
{
  GroupId gid = new GroupId( this.getCacheControl().getCacheName(), group );
  return new GroupAttrName<K>( gid, name );
}
origin: org.apache.commons/commons-jcs-core

((GroupAttrName<?>)k).groupId.equals(((GroupAttrName<?>)key).groupId) )
origin: org.apache.commons/commons-jcs-core

GroupAttrName<String> groupKey = new GroupAttrName<String>(new GroupId("test", "group"), "key");
ICacheElement<GroupAttrName<String>, String> element =
  new CacheElement<GroupAttrName<String>, String>( "test", groupKey, "value1" );
origin: org.apache.tomee.patch/commons-jcs-core

((GroupAttrName<?>)k).groupId.equals(((GroupAttrName<?>)key).groupId) )
origin: org.apache.tomee.patch/commons-jcs-core

GroupAttrName<String> groupKey = new GroupAttrName<String>(new GroupId("test", "group"), "key");
ICacheElement<GroupAttrName<String>, String> element =
  new CacheElement<GroupAttrName<String>, String>( "test", groupKey, "value1" );
org.apache.commons.jcs.engine.control.group

Most used classes

  • GroupAttrName
    Description of the Class
  • GroupId
    Used to avoid name conflict when group cache items are mixed with non-group cache items in the same
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now