@Override public void makeImmutable(){
  if (isMutable) {
    if (authnStatements != null) {
      int length=authnStatements.size();
      for (int i=0; i < length; i++) {
        AuthnStatement authn=(AuthnStatement)authnStatements.get(i);
        authn.makeImmutable();
      }
      authnStatements=Collections.unmodifiableList(authnStatements);
    }
    if (authzDecisionStatements != null) {
      int length=authzDecisionStatements.size();
      for (int i=0; i < length; i++) {
        AuthzDecisionStatement authz=(AuthzDecisionStatement)authzDecisionStatements.get(i);
        authz.makeImmutable();
      }
      authzDecisionStatements=Collections.unmodifiableList(authzDecisionStatements);
    }
    if (attributeStatements != null) {
      int length=attributeStatements.size();
      for (int i=0; i < length; i++) {
        AttributeStatement attr=(AttributeStatement)attributeStatements.get(i);
        attr.makeImmutable();
      }
      attributeStatements=Collections.unmodifiableList(attributeStatements);
    }
    if (statements != null) {
      statements=Collections.unmodifiableList(statements);
    }
    if (conditions != null) {
      conditions.makeImmutable();
    }
    if (issuer != null) {
      issuer.makeImmutable();
    }
    if (subject != null) {
      subject.makeImmutable();
    }
    if (advice != null) {
      advice.makeImmutable();
    }
    isMutable=false;
  }
}

@ Override public void makeImmutable ( ) { if ( isMutable ) { if ( authnStatements != null ) { int length = authnStatements . size ( ) ; for ( int i = 0 ; i < length ; i ++ ) { AuthnStatement authn = ( AuthnStatement ) authnStatements . get ( i ) ; authn . makeImmutable ( ) ; } authnStatements = Collections . unmodifiableList ( authnStatements ) ; } if ( authzDecisionStatements != null ) { int length = authzDecisionStatements . size ( ) ; for ( int i = 0 ; i < length ; i ++ ) { AuthzDecisionStatement authz = ( AuthzDecisionStatement ) authzDecisionStatements . get ( i ) ; authz . makeImmutable ( ) ; } authzDecisionStatements = Collections . unmodifiableList ( authzDecisionStatements ) ; } if ( attributeStatements != null ) { int length = attributeStatements . size ( ) ; for ( int i = 0 ; i < length ; i ++ ) { AttributeStatement attr = ( AttributeStatement ) attributeStatements . get ( i ) ; attr . makeImmutable ( ) ; } attributeStatements = Collections . unmodifiableList ( attributeStatements ) ; } if ( statements != null ) { statements = Collections . unmodifiableList ( statements ) ; } if ( conditions != null ) { conditions . makeImmutable ( ) ; } if ( issuer != null ) { issuer . makeImmutable ( ) ; } if ( subject != null ) { subject . makeImmutable ( ) ; } if ( advice != null ) { advice . makeImmutable ( ) ; } isMutable = false ; } }
makes the object immutable
