Пример #1
0
 /**
  * The creation time of a deterministic key is equal to that of its parent, unless this key is the
  * root of a tree. Thus, setting the creation time on a leaf is forbidden.
  */
 @Override
 public void setCreationTimeSeconds(long newCreationTimeSeconds) {
   if (parent != null)
     throw new IllegalStateException("Creation time can only be set on root keys.");
   else super.setCreationTimeSeconds(newCreationTimeSeconds);
 }