org.gitective.core.filter.commit
Class AuthorDateFilter

java.lang.Object
  extended by org.eclipse.jgit.revwalk.filter.RevFilter
      extended by org.gitective.core.filter.commit.CommitFilter
          extended by org.gitective.core.filter.commit.DateFilter
              extended by org.gitective.core.filter.commit.AuthorDateFilter
All Implemented Interfaces:
Cloneable

public class AuthorDateFilter
extends DateFilter

Filter that includes commits until an authored date is encountered that occurred before the configured date.


Field Summary
 
Fields inherited from class org.gitective.core.filter.commit.DateFilter
time
 
Fields inherited from class org.gitective.core.filter.commit.CommitFilter
repository
 
Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
ALL, MERGE_BASE, NO_MERGES, NONE
 
Constructor Summary
AuthorDateFilter(Date date)
          Create an author date filter for the given date
AuthorDateFilter(long time)
          Create an author date filter for the given time
 
Method Summary
 org.eclipse.jgit.revwalk.filter.RevFilter clone()
          Clones this filter.
protected  Date getDate(org.eclipse.jgit.revwalk.RevCommit commit)
          Get a date from the commit to compare against
 
Methods inherited from class org.gitective.core.filter.commit.DateFilter
getWhen, include
 
Methods inherited from class org.gitective.core.filter.commit.CommitFilter
include, reset, setRepository, setStop
 
Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
negate, requiresCommitBody, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorDateFilter

public AuthorDateFilter(Date date)
Create an author date filter for the given date

Parameters:
date -

AuthorDateFilter

public AuthorDateFilter(long time)
Create an author date filter for the given time

Parameters:
time -
Method Detail

getDate

protected Date getDate(org.eclipse.jgit.revwalk.RevCommit commit)
Description copied from class: DateFilter
Get a date from the commit to compare against

Specified by:
getDate in class DateFilter
Returns:
date

clone

public org.eclipse.jgit.revwalk.filter.RevFilter clone()
Description copied from class: CommitFilter
Clones this filter.

The default implementation throws a UnsupportedOperationException and sub-classes should override if filter cloning is supported.

Overrides:
clone in class CommitFilter
See Also:
RevFilter.clone()


Copyright © 2011-2012. All Rights Reserved.